Changeset 107436 in webkit


Ignore:
Timestamp:
Feb 10, 2012 1:43:22 PM (12 years ago)
Author:
haraken@chromium.org
Message:

Rename [JSCustomPrototypePutDelegate] to [JSCustomNamedGetterOnPrototype]
https://bugs.webkit.org/show_bug.cgi?id=78353

Reviewed by Adam Barth.

[JSCustomPrototypePutDelegate] is used to write custom code for named
getters on a prototype interface. "PutDelegate" is just a method name
in implementation and not so descriptive. This patch renames it to
[JSCustomNamedGetterOnPrototype]. This is also for naming consistency
with [CustomNamedGetter].

No tests. No change in behavior.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):

  • page/Location.idl:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107435 r107436  
     12012-02-10  Kentaro Hara  <haraken@chromium.org>
     2
     3        Rename [JSCustomPrototypePutDelegate] to [JSCustomNamedGetterOnPrototype]
     4        https://bugs.webkit.org/show_bug.cgi?id=78353
     5
     6        Reviewed by Adam Barth.
     7
     8        [JSCustomPrototypePutDelegate] is used to write custom code for named
     9        getters on a prototype interface. "PutDelegate" is just a method name
     10        in implementation and not so descriptive. This patch renames it to
     11        [JSCustomNamedGetterOnPrototype]. This is also for naming consistency
     12        with [CustomNamedGetter].
     13
     14        No tests. No change in behavior.
     15
     16        * bindings/scripts/CodeGeneratorJS.pm:
     17        (GenerateHeader):
     18        (GenerateImplementation):
     19        * page/Location.idl:
     20
    1212012-02-10  Enrica Casucci  <enrica@apple.com>
    222
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r107432 r107436  
    10491049        "        return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);\n" .
    10501050        "    }\n");
    1051     if ($dataNode->extendedAttributes->{"JSCustomPrototypePutDelegate"}) {
     1051    if ($dataNode->extendedAttributes->{"JSCustomNamedGetterOnPrototype"}) {
    10521052        push(@headerContent, "    static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);\n");
    10531053        push(@headerContent, "    bool putDelegate(JSC::ExecState*, const JSC::Identifier&, JSC::JSValue, JSC::PutPropertySlot&);\n");
     
    15181518    }
    15191519
    1520     if ($dataNode->extendedAttributes->{"JSCustomPrototypePutDelegate"}) {
     1520    if ($dataNode->extendedAttributes->{"JSCustomNamedGetterOnPrototype"}) {
    15211521        push(@implContent, "void ${className}Prototype::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)\n");
    15221522        push(@implContent, "{\n");
  • trunk/Source/WebCore/page/Location.idl

    r107432 r107436  
    3939        CustomEnumerateProperty,
    4040        JSCustomDefineOwnProperty,
    41         JSCustomPrototypePutDelegate,
     41        JSCustomNamedGetterOnPrototype,
    4242        JSCustomPrototypeDefineOwnProperty,
    4343        OmitConstructor
Note: See TracChangeset for help on using the changeset viewer.