Changeset 122535 in webkit


Ignore:
Timestamp:
Jul 12, 2012 6:53:17 PM (12 years ago)
Author:
arv@chromium.org
Message:

[V8] Simplify CodeGeneratorV8 since V8OnProto is only true for DOMWindow
https://bugs.webkit.org/show_bug.cgi?id=91165

Reviewed by Nate Chapin.

The old code was dead code since V8OnProto only ever gets set to 1 for DOMWindow.

No new tests. No change in functionality.

  • bindings/scripts/CodeGeneratorV8.pm:

(GenerateNormalAttrSetter):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122533 r122535  
     12012-07-12  Erik Arvidsson  <arv@chromium.org>
     2
     3        [V8] Simplify CodeGeneratorV8 since V8OnProto is only true for DOMWindow
     4        https://bugs.webkit.org/show_bug.cgi?id=91165
     5
     6        Reviewed by Nate Chapin.
     7
     8        The old code was dead code since V8OnProto only ever gets set to 1 for DOMWindow.
     9
     10        No new tests. No change in functionality.
     11
     12        * bindings/scripts/CodeGeneratorV8.pm:
     13        (GenerateNormalAttrSetter):
     14
    1152012-07-12  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r121817 r122535  
    11351135        }
    11361136    } elsif ($attrExt->{"V8OnProto"}) {
    1137       if ($interfaceName eq "DOMWindow") {
    11381137        push(@implContentDecls, <<END);
    1139     v8::Handle<v8::Object> holder = info.Holder();
    1140 END
    1141       } else {
    1142         # perform lookup first
    1143         push(@implContentDecls, <<END);
    1144     v8::Handle<v8::Object> holder = V8DOMWrapper::lookupDOMWrapper(V8${interfaceName}::GetTemplate(), info.This());
    1145     if (holder.IsEmpty())
    1146         return;
    1147 END
    1148       }
    1149     push(@implContentDecls, <<END);
    1150     ${implClassName}* imp = V8${implClassName}::toNative(holder);
     1138    ${implClassName}* imp = V8${implClassName}::toNative(info.Holder());
    11511139END
    11521140    } else {
Note: See TracChangeset for help on using the changeset viewer.