Changeset 107432 in webkit
- Timestamp:
- Feb 10, 2012 1:03:13 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107431 r107432 1 2012-02-10 Kentaro Hara <haraken@chromium.org> 2 3 Rename [JSCustomGetOwnPropertySlotDelegate] to [JSCustomGetOwnPropertySlotAndDescriptor] 4 https://bugs.webkit.org/show_bug.cgi?id=78352 5 6 Reviewed by Adam Barth. 7 8 [JSCustomGetOwnPropertySlotDelegate] is used for "flexibly customizable" 9 named getter. It allows us to write custom code for getOwnPropertySlotDelegate() 10 and getOwnPropertyDescriptorDelegate(). To clarify that, we can rename 11 [JSCustomGetOwnPropertySlotDelegate] to [JSCustomGetOwnPropertySlotAndDescriptor]. 12 13 No tests. No change in behavior. 14 15 * bindings/scripts/CodeGeneratorJS.pm: 16 (GenerateGetOwnPropertySlotBody): 17 (GenerateGetOwnPropertyDescriptorBody): 18 (GenerateHeader): 19 (GenerateImplementation): 20 21 * html/HTMLAppletElement.idl: 22 * html/HTMLEmbedElement.idl: 23 * html/HTMLObjectElement.idl: 24 * page/History.idl: 25 * page/Location.idl: 26 * workers/WorkerContext.idl: 27 1 28 2012-02-10 Anders Carlsson <andersca@apple.com> 2 29 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r107410 r107432 470 470 } 471 471 472 if ($dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"}) {472 if ($dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}) { 473 473 push(@getOwnPropertySlotImpl, " if (thisObject->getOwnPropertySlotDelegate(exec, propertyName, slot))\n"); 474 474 push(@getOwnPropertySlotImpl, " return true;\n"); … … 571 571 } 572 572 573 if ($dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"}) {573 if ($dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}) { 574 574 push(@getOwnPropertyDescriptorImpl, " if (thisObject->getOwnPropertyDescriptorDelegate(exec, propertyName, descriptor))\n"); 575 575 push(@getOwnPropertyDescriptorImpl, " return true;\n"); … … 759 759 || $dataNode->extendedAttributes->{"NumericIndexedGetter"} 760 760 || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"} 761 || $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"}761 || $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"} 762 762 || $dataNode->extendedAttributes->{"NamedGetter"} 763 763 || $dataNode->extendedAttributes->{"CustomNamedGetter"}; … … 768 768 push(@headerContent, " static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);\n"); 769 769 push(@headerContent, " static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);\n") if ($dataNode->extendedAttributes->{"IndexedGetter"} || $dataNode->extendedAttributes->{"NumericIndexedGetter"}) && !$dataNode->extendedAttributes->{"CustomNamedGetter"}; 770 push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"};771 push(@headerContent, " bool getOwnPropertyDescriptorDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"};770 push(@headerContent, " bool getOwnPropertySlotDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}; 771 push(@headerContent, " bool getOwnPropertyDescriptorDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);\n") if $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"}; 772 772 $structureFlags{"JSC::OverridesGetOwnPropertySlot"} = 1; 773 773 } … … 1624 1624 || $dataNode->extendedAttributes->{"IndexedGetter"} 1625 1625 || $dataNode->extendedAttributes->{"NumericIndexedGetter"} 1626 || $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlot Delegate"}1626 || $dataNode->extendedAttributes->{"JSCustomGetOwnPropertySlotAndDescriptor"} 1627 1627 || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"} 1628 1628 || $dataNode->extendedAttributes->{"NamedGetter"} -
trunk/Source/WebCore/html/HTMLAppletElement.idl
r107051 r107432 23 23 interface [ 24 24 CustomNamedSetter, 25 JSCustomGetOwnPropertySlot Delegate,25 JSCustomGetOwnPropertySlotAndDescriptor, 26 26 CustomCall 27 27 ] HTMLAppletElement : HTMLElement { -
trunk/Source/WebCore/html/HTMLEmbedElement.idl
r107051 r107432 23 23 interface [ 24 24 CustomNamedSetter, 25 JSCustomGetOwnPropertySlot Delegate,25 JSCustomGetOwnPropertySlotAndDescriptor, 26 26 CustomCall 27 27 ] HTMLEmbedElement : HTMLElement { -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r107051 r107432 23 23 interface [ 24 24 CustomNamedSetter, 25 JSCustomGetOwnPropertySlot Delegate,25 JSCustomGetOwnPropertySlotAndDescriptor, 26 26 CustomCall 27 27 ] HTMLObjectElement : HTMLElement { -
trunk/Source/WebCore/page/History.idl
r107410 r107432 30 30 CheckDomainSecurity, 31 31 #endif 32 JSCustomGetOwnPropertySlot Delegate,32 JSCustomGetOwnPropertySlotAndDescriptor, 33 33 CustomNamedSetter, 34 34 JSGenerateIsReachable=ImplFrame, -
trunk/Source/WebCore/page/Location.idl
r107410 r107432 33 33 CheckDomainSecurity, 34 34 #endif 35 JSCustomGetOwnPropertySlot Delegate,35 JSCustomGetOwnPropertySlotAndDescriptor, 36 36 CustomNamedSetter, 37 37 JSGenerateIsReachable=ImplFrame, -
trunk/Source/WebCore/workers/WorkerContext.idl
r107304 r107432 30 30 Conditional=WORKERS, 31 31 JSCustomMarkFunction, 32 JSCustomGetOwnPropertySlot Delegate,32 JSCustomGetOwnPropertySlotAndDescriptor, 33 33 EventTarget, 34 34 ExtendsDOMGlobalObject,
Note: See TracChangeset
for help on using the changeset viewer.