Changeset 123439 in webkit
- Timestamp:
- Jul 24, 2012 1:44:58 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r123438 r123439 1 2012-07-24 Kentaro Hara <haraken@chromium.org> 2 3 [JSC] REGRESSION(r122912): CodeGeneratorJS.pm generates wrong code 4 for static attributes in supplemental IDL files 5 https://bugs.webkit.org/show_bug.cgi?id=91925 6 7 Reviewed by Adam Barth. 8 9 r122912 implemented static attributes in CodeGeneratorJS.pm. 10 However, it generates wrong code for static attributes in supplemental 11 IDL files. This patch fixes it as shown in JSTestInterface.cpp. 12 This fix aligns with the fix in CodeGeneratorV8.pm (r123308). 13 14 Test: bindings/scripts/test/TestSupplemental.idl 15 16 * bindings/scripts/CodeGeneratorJS.pm: 17 (GenerateImplementation): 18 * bindings/scripts/test/JS/JSTestInterface.cpp: 19 (WebCore::jsTestInterfaceConstructorSupplementalStaticReadOnlyAttr): 20 (WebCore::jsTestInterfaceConstructorSupplementalStaticAttr): 21 (WebCore::setJSTestInterfaceConstructorSupplementalStaticAttr): 22 1 23 2012-07-24 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 24 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r123433 r123439 1843 1843 $implIncludes{"${implementedBy}.h"} = 1; 1844 1844 $functionName = "${implementedBy}::${functionName}"; 1845 unshift(@arguments, "impl") ;1845 unshift(@arguments, "impl") if !$attribute->isStatic; 1846 1846 } elsif ($attribute->isStatic) { 1847 1847 $functionName = "${implClassName}::${functionName}"; … … 2072 2072 my $implementedBy = $attribute->signature->extendedAttributes->{"ImplementedBy"}; 2073 2073 $implIncludes{"${implementedBy}.h"} = 1; 2074 unshift(@arguments, "impl") ;2074 unshift(@arguments, "impl") if !$attribute->isStatic; 2075 2075 $functionName = "${implementedBy}::${functionName}"; 2076 2076 } elsif ($attribute->isStatic) { -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
r123433 r123439 246 246 { 247 247 UNUSED_PARAM(exec); 248 JSValue result = jsNumber(TestSupplemental::supplementalStaticReadOnlyAttr( impl));248 JSValue result = jsNumber(TestSupplemental::supplementalStaticReadOnlyAttr()); 249 249 return result; 250 250 } … … 256 256 { 257 257 UNUSED_PARAM(exec); 258 JSValue result = jsString(exec, TestSupplemental::supplementalStaticAttr( impl));258 JSValue result = jsString(exec, TestSupplemental::supplementalStaticAttr()); 259 259 return result; 260 260 } … … 326 326 { 327 327 UNUSED_PARAM(exec); 328 TestSupplemental::setSupplementalStaticAttr( impl,ustringToString(value.isEmpty() ? UString() : value.toString(exec)->value(exec)));328 TestSupplemental::setSupplementalStaticAttr(ustringToString(value.isEmpty() ? UString() : value.toString(exec)->value(exec))); 329 329 } 330 330
Note: See TracChangeset
for help on using the changeset viewer.