Changeset 107051 in webkit


Ignore:
Timestamp:
Feb 8, 2012 12:57:50 AM (12 years ago)
Author:
haraken@chromium.org
Message:

Rename [DelegatingPutFunction] IDL to [CustomNamedSetter] IDL
https://bugs.webkit.org/show_bug.cgi?id=77963

Reviewed by Adam Barth.

This patch renames [DelegatingPutFunction] IDL to [CustomNamedSetter] IDL,
for clarification and for naming consistency with [NamedGetter] and [CustomIndexedSetter].

No tests. No change in behavior.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):

  • bindings/scripts/CodeGeneratorV8.pm:

(GenerateHeaderNamedAndIndexedPropertyAccessors):
(GenerateImplementationIndexer):
(GenerateImplementationNamedPropertyGetter):

  • bindings/scripts/test/TestInterface.idl:
  • css/CSSStyleDeclaration.idl:
  • dom/DOMStringMap.idl:
  • html/HTMLAppletElement.idl:
  • html/HTMLEmbedElement.idl:
  • html/HTMLObjectElement.idl:
  • page/History.idl:
  • page/Location.idl:
  • storage/Storage.idl:
Location:
trunk/Source/WebCore
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107046 r107051  
     12012-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
    1302012-02-08  Kentaro Hara  <haraken@chromium.org>
    231
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r107045 r107051  
    752752    $headerTrailingIncludes{"${className}Custom.h"} = 1 if $dataNode->extendedAttributes->{"CustomHeader"};
    753753
    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"});
    755755
    756756    my $hasGetter = $numAttributes > 0
     
    783783    my $hasSetter = $hasReadWriteProperties
    784784                 || $dataNode->extendedAttributes->{"CustomPutFunction"}
    785                  || $dataNode->extendedAttributes->{"DelegatingPutFunction"}
     785                 || $dataNode->extendedAttributes->{"CustomNamedSetter"}
    786786                 || $dataNode->extendedAttributes->{"CustomIndexedSetter"};
    787787
     
    790790        push(@headerContent, "    static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);\n");
    791791        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"};
    793793    }
    794794
     
    18261826
    18271827        my $hasSetter = $hasReadWriteProperties
    1828                      || $dataNode->extendedAttributes->{"DelegatingPutFunction"}
     1828                     || $dataNode->extendedAttributes->{"CustomNamedSetter"}
    18291829                     || $dataNode->extendedAttributes->{"CustomIndexedSetter"};
    18301830
     
    18431843                    push(@implContent, "    }\n");
    18441844                }
    1845                 if ($dataNode->extendedAttributes->{"DelegatingPutFunction"}) {
     1845                if ($dataNode->extendedAttributes->{"CustomNamedSetter"}) {
    18461846                    push(@implContent, "    if (thisObject->putDelegate(exec, propertyName, value, slot))\n");
    18471847                    push(@implContent, "        return;\n");
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r107039 r107051  
    567567    my $hasCustomIndexedSetter = $dataNode->extendedAttributes->{"CustomIndexedSetter"} && !$dataNode->extendedAttributes->{"HasNumericIndexGetter"};
    568568    my $hasCustomNamedGetter = $dataNode->extendedAttributes->{"NamedGetter"} || $dataNode->extendedAttributes->{"CustomNamedGetter"} || $dataNode->extendedAttributes->{"CustomGetOwnPropertySlot"};
    569     my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"DelegatingPutFunction"};
     569    my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"CustomNamedSetter"};
    570570    my $hasCustomDeleters = $dataNode->extendedAttributes->{"CustomDeleteProperty"};
    571571    my $hasCustomEnumerator = $dataNode->extendedAttributes->{"CustomGetPropertyNames"};
     
    20632063    if ($isSpecialCase) {
    20642064        $hasGetter = 1;
    2065         if ($dataNode->extendedAttributes->{"DelegatingPutFunction"}) {
     2065        if ($dataNode->extendedAttributes->{"CustomNamedSetter"}) {
    20662066            $hasCustomSetter = 1;
    20672067        }
     
    21692169    }
    21702170
    2171     my $hasSetter = $dataNode->extendedAttributes->{"DelegatingPutFunction"};
     2171    my $hasCustomNamedSetter = $dataNode->extendedAttributes->{"CustomNamedSetter"};
    21722172    my $hasDeleter = $dataNode->extendedAttributes->{"CustomDeleteProperty"};
    21732173    my $hasEnumerator = $dataNode->extendedAttributes->{"CustomGetPropertyNames"};
     
    21852185
    21862186    push(@implContent, "    desc->${setOn}Template()->SetNamedPropertyHandler(V8${interfaceName}::namedPropertyGetter, ");
    2187     push(@implContent, $hasSetter ? "V8${interfaceName}::namedPropertySetter, " : "0, ");
     2187    push(@implContent, $hasCustomNamedSetter ? "V8${interfaceName}::namedPropertySetter, " : "0, ");
    21882188    # If there is a custom enumerator, there MUST be custom query to properly communicate property attributes.
    21892189    push(@implContent, $hasEnumerator ? "V8${interfaceName}::namedPropertyQuery, " : "0, ");
  • trunk/Source/WebCore/bindings/scripts/test/TestInterface.idl

    r104526 r107051  
    3232    interface [
    3333        ActiveDOMObject,
    34         DelegatingPutFunction,
     34        CustomNamedSetter,
    3535        Conditional=Condition1|Condition2,
    3636        CallWith=ScriptExecutionContext,
  • trunk/Source/WebCore/css/CSSStyleDeclaration.idl

    r106798 r107051  
    2525        JSCustomMarkFunction,
    2626        JSGenerateIsReachable=ImplRoot,
    27         DelegatingPutFunction,
     27        CustomNamedSetter,
    2828        NamedGetter,
    2929        IndexedGetter,
  • trunk/Source/WebCore/dom/DOMStringMap.idl

    r106798 r107051  
    3131        CustomDeleteProperty,
    3232        CustomGetPropertyNames,
    33         DelegatingPutFunction,
     33        CustomNamedSetter,
    3434    ] DOMStringMap {
    3535    };
  • trunk/Source/WebCore/html/HTMLAppletElement.idl

    r107041 r107051  
    2222
    2323    interface [
    24         DelegatingPutFunction,
     24        CustomNamedSetter,
    2525        JSCustomGetOwnPropertySlotDelegate,
    2626        CustomCall
  • trunk/Source/WebCore/html/HTMLEmbedElement.idl

    r107041 r107051  
    2222
    2323    interface [
    24         DelegatingPutFunction,
     24        CustomNamedSetter,
    2525        JSCustomGetOwnPropertySlotDelegate,
    2626        CustomCall
  • trunk/Source/WebCore/html/HTMLObjectElement.idl

    r107041 r107051  
    2222
    2323    interface [
    24         DelegatingPutFunction,
     24        CustomNamedSetter,
    2525        JSCustomGetOwnPropertySlotDelegate,
    2626        CustomCall
  • trunk/Source/WebCore/page/History.idl

    r107041 r107051  
    3131#endif
    3232        JSCustomGetOwnPropertySlotDelegate,
    33         DelegatingPutFunction,
     33        CustomNamedSetter,
    3434        JSGenerateIsReachable=ImplFrame,
    3535        CustomDeleteProperty,
  • trunk/Source/WebCore/page/Location.idl

    r107041 r107051  
    3434#endif
    3535        JSCustomGetOwnPropertySlotDelegate,
    36         DelegatingPutFunction,
     36        CustomNamedSetter,
    3737        JSGenerateIsReachable=ImplFrame,
    3838        CustomDeleteProperty,
  • trunk/Source/WebCore/storage/Storage.idl

    r106798 r107051  
    3131        CustomDeleteProperty,
    3232        CustomGetPropertyNames,
    33         DelegatingPutFunction,
     33        CustomNamedSetter,
    3434    ] Storage {
    3535        readonly attribute [NotEnumerable] unsigned long length;
Note: See TracChangeset for help on using the changeset viewer.