Changeset 107051 in webkit
- Timestamp:
- Feb 8, 2012 12:57:50 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107046 r107051 1 2012-02-08 Kentaro Hara <haraken@chromium.org> 2 3 Rename [DelegatingPutFunction] IDL to [CustomNamedSetter] IDL 4 https://bugs.webkit.org/show_bug.cgi?id=77963 5 6 Reviewed by Adam Barth. 7 8 This patch renames [DelegatingPutFunction] IDL to [CustomNamedSetter] IDL, 9 for clarification and for naming consistency with [NamedGetter] and [CustomIndexedSetter]. 10 11 No tests. No change in behavior. 12 13 * bindings/scripts/CodeGeneratorJS.pm: 14 (GenerateHeader): 15 (GenerateImplementation): 16 * bindings/scripts/CodeGeneratorV8.pm: 17 (GenerateHeaderNamedAndIndexedPropertyAccessors): 18 (GenerateImplementationIndexer): 19 (GenerateImplementationNamedPropertyGetter): 20 * bindings/scripts/test/TestInterface.idl: 21 * css/CSSStyleDeclaration.idl: 22 * dom/DOMStringMap.idl: 23 * html/HTMLAppletElement.idl: 24 * html/HTMLEmbedElement.idl: 25 * html/HTMLObjectElement.idl: 26 * page/History.idl: 27 * page/Location.idl: 28 * storage/Storage.idl: 29 1 30 2012-02-08 Kentaro Hara <haraken@chromium.org> 2 31 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r107045 r107051 752 752 $headerTrailingIncludes{"${className}Custom.h"} = 1 if $dataNode->extendedAttributes->{"CustomHeader"}; 753 753 754 $implIncludes{"${className}Custom.h"} = 1 if !$dataNode->extendedAttributes->{"CustomHeader"} && ($dataNode->extendedAttributes->{"CustomPutFunction"} || $dataNode->extendedAttributes->{" DelegatingPutFunction"});754 $implIncludes{"${className}Custom.h"} = 1 if !$dataNode->extendedAttributes->{"CustomHeader"} && ($dataNode->extendedAttributes->{"CustomPutFunction"} || $dataNode->extendedAttributes->{"CustomNamedSetter"}); 755 755 756 756 my $hasGetter = $numAttributes > 0 … … 783 783 my $hasSetter = $hasReadWriteProperties 784 784 || $dataNode->extendedAttributes->{"CustomPutFunction"} 785 || $dataNode->extendedAttributes->{" DelegatingPutFunction"}785 || $dataNode->extendedAttributes->{"CustomNamedSetter"} 786 786 || $dataNode->extendedAttributes->{"CustomIndexedSetter"}; 787 787 … … 790 790 push(@headerContent, " static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);\n"); 791 791 push(@headerContent, " static void putByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::JSValue);\n") if $dataNode->extendedAttributes->{"CustomIndexedSetter"}; 792 push(@headerContent, " bool putDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::JSValue, JSC::PutPropertySlot&);\n") if $dataNode->extendedAttributes->{" DelegatingPutFunction"};792 push(@headerContent, " bool putDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::JSValue, JSC::PutPropertySlot&);\n") if $dataNode->extendedAttributes->{"CustomNamedSetter"}; 793 793 } 794 794 … … 1826 1826 1827 1827 my $hasSetter = $hasReadWriteProperties 1828 || $dataNode->extendedAttributes->{" DelegatingPutFunction"}1828 || $dataNode->extendedAttributes->{"CustomNamedSetter"} 1829 1829 || $dataNode->extendedAttributes->{"CustomIndexedSetter"}; 1830 1830 … … 1843 1843 push(@implContent, " }\n"); 1844 1844 } 1845 if ($dataNode->extendedAttributes->{" DelegatingPutFunction"}) {1845 if ($dataNode->extendedAttributes->{"CustomNamedSetter"}) { 1846 1846 push(@implContent, " if (thisObject->putDelegate(exec, propertyName, value, slot))\n"); 1847 1847 push(@implContent, " return;\n"); -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r107039 r107051 567 567 my $hasCustomIndexedSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"HasNumericIndexGetter"}; 568 568 my $hasCustomNamedGetter = $dataNode->extendedAttributes->{"NamedGetter"} || $dataNode->extendedAttributes->{"CustomNamedGetter"} || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"}; 569 my $hasCustomNamedSetter = $dataNode->extendedAttributes->{" DelegatingPutFunction"};569 my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"CustomNamedSetter"}; 570 570 my $hasCustomDeleters = $dataNode->extendedAttributes->{"CustomDeleteProperty"}; 571 571 my $hasCustomEnumerator = $dataNode->extendedAttributes->{"CustomGetPropertyNames"}; … … 2063 2063 if ($isSpecialCase) { 2064 2064 $hasGetter = 1; 2065 if ($dataNode->extendedAttributes->{" DelegatingPutFunction"}) {2065 if ($dataNode->extendedAttributes->{"CustomNamedSetter"}) { 2066 2066 $hasCustomSetter = 1; 2067 2067 } … … 2169 2169 } 2170 2170 2171 my $has Setter = $dataNode->extendedAttributes->{"DelegatingPutFunction"};2171 my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"CustomNamedSetter"}; 2172 2172 my $hasDeleter = $dataNode->extendedAttributes->{"CustomDeleteProperty"}; 2173 2173 my $hasEnumerator = $dataNode->extendedAttributes->{"CustomGetPropertyNames"}; … … 2185 2185 2186 2186 push(@implContent, " desc->${setOn}Template()->SetNamedPropertyHandler(V8${interfaceName}::namedPropertyGetter, "); 2187 push(@implContent, $has Setter ? "V8${interfaceName}::namedPropertySetter, " : "0, ");2187 push(@implContent, $hasCustomNamedSetter ? "V8${interfaceName}::namedPropertySetter, " : "0, "); 2188 2188 # If there is a custom enumerator, there MUST be custom query to properly communicate property attributes. 2189 2189 push(@implContent, $hasEnumerator ? "V8${interfaceName}::namedPropertyQuery, " : "0, "); -
trunk/Source/WebCore/bindings/scripts/test/TestInterface.idl
r104526 r107051 32 32 interface [ 33 33 ActiveDOMObject, 34 DelegatingPutFunction,34 CustomNamedSetter, 35 35 Conditional=Condition1|Condition2, 36 36 CallWith=ScriptExecutionContext, -
trunk/Source/WebCore/css/CSSStyleDeclaration.idl
r106798 r107051 25 25 JSCustomMarkFunction, 26 26 JSGenerateIsReachable=ImplRoot, 27 DelegatingPutFunction,27 CustomNamedSetter, 28 28 NamedGetter, 29 29 IndexedGetter, -
trunk/Source/WebCore/dom/DOMStringMap.idl
r106798 r107051 31 31 CustomDeleteProperty, 32 32 CustomGetPropertyNames, 33 DelegatingPutFunction,33 CustomNamedSetter, 34 34 ] DOMStringMap { 35 35 }; -
trunk/Source/WebCore/html/HTMLAppletElement.idl
r107041 r107051 22 22 23 23 interface [ 24 DelegatingPutFunction,24 CustomNamedSetter, 25 25 JSCustomGetOwnPropertySlotDelegate, 26 26 CustomCall -
trunk/Source/WebCore/html/HTMLEmbedElement.idl
r107041 r107051 22 22 23 23 interface [ 24 DelegatingPutFunction,24 CustomNamedSetter, 25 25 JSCustomGetOwnPropertySlotDelegate, 26 26 CustomCall -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r107041 r107051 22 22 23 23 interface [ 24 DelegatingPutFunction,24 CustomNamedSetter, 25 25 JSCustomGetOwnPropertySlotDelegate, 26 26 CustomCall -
trunk/Source/WebCore/page/History.idl
r107041 r107051 31 31 #endif 32 32 JSCustomGetOwnPropertySlotDelegate, 33 DelegatingPutFunction,33 CustomNamedSetter, 34 34 JSGenerateIsReachable=ImplFrame, 35 35 CustomDeleteProperty, -
trunk/Source/WebCore/page/Location.idl
r107041 r107051 34 34 #endif 35 35 JSCustomGetOwnPropertySlotDelegate, 36 DelegatingPutFunction,36 CustomNamedSetter, 37 37 JSGenerateIsReachable=ImplFrame, 38 38 CustomDeleteProperty, -
trunk/Source/WebCore/storage/Storage.idl
r106798 r107051 31 31 CustomDeleteProperty, 32 32 CustomGetPropertyNames, 33 DelegatingPutFunction,33 CustomNamedSetter, 34 34 ] Storage { 35 35 readonly attribute [NotEnumerable] unsigned long length;
Note: See TracChangeset
for help on using the changeset viewer.