Changeset 107148 in webkit
- Timestamp:
- Feb 8, 2012, 4:21:20 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
bindings/scripts/CodeGeneratorCPP.pm (modified) (1 diff)
-
bindings/scripts/CodeGeneratorObjC.pm (modified) (2 diffs)
-
html/HTMLInputElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107146 r107148 1 2012-02-08 Kentaro Hara <haraken@chromium.org> 2 3 Remove [ConvertToString] from CodeGeneratorCPP.pm and rename 4 it to [ObjCImplementedAsUnsignedLong] 5 https://bugs.webkit.org/show_bug.cgi?id=78100 6 7 Reviewed by Eric Seidel. 8 9 Now [ConvertToString] is used by ObjC's HTMLElement.size only. 10 This patch removes [ConvertToString] code from CodeGeneratorCPP.pm, 11 and renames [ConvertToString] to [ObjCImplementedAsUnsignedLong]. 12 13 No tests. No change in behavior. 14 15 * bindings/scripts/CodeGeneratorCPP.pm: 16 (GenerateImplementation): 17 * bindings/scripts/CodeGeneratorObjC.pm: 18 (GenerateImplementation): 19 * html/HTMLInputElement.idl: Removed FIXME comment, because the latest spec 20 says HTMLInputElement.size should be unsigned long. 21 (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element) 22 1 23 2012-02-08 Leo Yang <leo.yang@torchmobile.com.cn> 2 24 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm
r106698 r107148 749 749 my $arg = GetCPPTypeGetter($argName, $idlType); 750 750 751 # The definition of ConvertToString is flipped for the setter752 if ($attribute->signature->extendedAttributes->{"ConvertToString"}) {753 $arg = "WTF::String($arg).toInt()";754 }755 756 751 my $attributeType = GetCPPType($attribute->signature->type, 1); 757 752 push(@implContent, "void $className\:\:$setterName($attributeType $argName)\n"); -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r106695 r107148 1258 1258 } 1259 1259 $implIncludes{"DOMPrivate.h"} = 1; 1260 } elsif ($attribute->signature->extendedAttributes->{" ConvertToString"}) {1260 } elsif ($attribute->signature->extendedAttributes->{"ObjCImplementedAsUnsignedLong"}) { 1261 1261 $getterContentHead = "WTF::String::number(" . $getterContentHead; 1262 1262 $getterContentTail .= ")"; … … 1385 1385 my $arg = GetObjCTypeGetter($argName, $idlType); 1386 1386 1387 # The definition of ConvertToString is flipped for the setter1388 if ($attribute->signature->extendedAttributes->{" ConvertToString"}) {1387 # The definition of ObjCImplementedAsUnsignedLong is flipped for the setter 1388 if ($attribute->signature->extendedAttributes->{"ObjCImplementedAsUnsignedLong"}) { 1389 1389 $arg = "WTF::String($arg).toInt()"; 1390 1390 } -
trunk/Source/WebCore/html/HTMLInputElement.idl
r106776 r107148 51 51 attribute [Reflect] boolean required; 52 52 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 53 attribute [ ConvertToString] DOMString size; // DOM level 2 changed this to a long, but our existingAPI is a string53 attribute [ObjCImplementedAsUnsignedLong] DOMString size; // DOM level 2 changed this to a long, but ObjC API is a string 54 54 #else 55 // FIXME: The spec says this should be a long, not an unsigned long. 56 attribute unsigned long size; // Changed string -> long as part of DOM level 2 55 attribute unsigned long size; // Changed string -> long -> unsigned long 57 56 #endif 58 57 attribute [Reflect, URL] DOMString src;
Note:
See TracChangeset
for help on using the changeset viewer.