Chromium Code Reviews| Index: Source/bindings/scripts/CodeGeneratorV8.pm |
| diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm |
| index 378e8a3ab9ce27d8238117219a5f9a698645fbd5..082878712fb233c02e66e8f7213cf05b5de62bae 100644 |
| --- a/Source/bindings/scripts/CodeGeneratorV8.pm |
| +++ b/Source/bindings/scripts/CodeGeneratorV8.pm |
| @@ -2854,14 +2854,19 @@ inline void checkTypeOrDieTrying(${nativeType}* object) |
| END |
| - |
| my $parentClassInfo = $parentClass ? "&${parentClass}::info" : "0"; |
| - |
| my $WrapperTypePrototype = $interface->isException ? "WrapperTypeErrorPrototype" : "WrapperTypeObjectPrototype"; |
| - |
| push(@implContentInternals, "WrapperTypeInfo ${v8InterfaceName}::info = { ${v8InterfaceName}::GetTemplate, ${v8InterfaceName}::derefObject, $toActiveDOMObject, $toEventTarget, $rootForGC, ${v8InterfaceName}::installPerContextPrototypeProperties, $parentClassInfo, $WrapperTypePrototype };\n\n"); |
| - push(@implContentInternals, "namespace ${interfaceName}V8Internal {\n\n"); |
| + push(@implContentInternals, <<END) if !$codeGenerator->IsSVGTypeNeedingTearOff($interfaceName); |
| +void scriptwrappable_init(${interfaceName}* object) |
|
abarth-chromium
2013/04/11 22:59:33
scriptwrappable_init <-- That's an odd name.
|
| +{ |
| + if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| + ScriptWrappable::setTypeInfoInObject(object, &${v8InterfaceName}::info); |
| +} |
| +END |
| + |
| + push(@implContentInternals, "namespace ${interfaceName}V8Internal {\n\n"); |
| push(@implContentInternals, "template <typename T> void V8_USE(T) { }\n\n"); |
| my $hasConstructors = 0; |