Changeset 122535 in webkit
- Timestamp:
- Jul 12, 2012 6:53:17 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r122533 r122535 1 2012-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 1 15 2012-07-12 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r121817 r122535 1135 1135 } 1136 1136 } elsif ($attrExt->{"V8OnProto"}) { 1137 if ($interfaceName eq "DOMWindow") {1138 1137 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()); 1151 1139 END 1152 1140 } else {
Note: See TracChangeset
for help on using the changeset viewer.