Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index a36dcf7e88b6cfe2eb6b1b5fe7f942c716bab3a9..62ef12032a44491e9b7ddde3325162c119766708 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -434,7 +434,7 @@ static void {{cpp_class}}OriginSafeMethodSetterCallback(v8::Local<v8::String> na |
if is_active_dom_object else '0' %} |
{% set to_event_target = '%s::toEventTarget' % v8_class |
if is_event_target else '0' %} |
-const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedderBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8_class}}::createPersistentHandle, {{to_active_dom_object}}, {{to_event_target}}, 0, {{v8_class}}::installConditionallyEnabledMethods, {{v8_class}}::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; |
+const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedderBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8_class}}::trace, {{to_active_dom_object}}, {{to_event_target}}, 0, {{v8_class}}::installConditionallyEnabledMethods, {{v8_class}}::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; |
{{generate_constructor(named_constructor)}} |
v8::Handle<v8::FunctionTemplate> {{v8_class}}Constructor::domTemplate(v8::Isolate* isolate) |
@@ -878,23 +878,6 @@ void {{v8_class}}::derefObject(ScriptWrappableBase* internalPointer) |
{% endif %} |
} |
-WrapperPersistentNode* {{v8_class}}::createPersistentHandle(ScriptWrappableBase* internalPointer) |
-{ |
-{% if gc_type == 'GarbageCollectedObject' %} |
- return WrapperPersistent<{{cpp_class}}>::create(internalPointer->toImpl<{{cpp_class}}>()); |
-{% elif gc_type == 'WillBeGarbageCollectedObject' %} |
-#if ENABLE(OILPAN) |
- return WrapperPersistent<{{cpp_class}}>::create(internalPointer->toImpl<{{cpp_class}}>()); |
-#else |
- ASSERT_NOT_REACHED(); |
- return 0; |
-#endif |
-{% elif gc_type == 'RefCountedObject' %} |
- ASSERT_NOT_REACHED(); |
- return 0; |
-{% endif %} |
-} |
- |
template<> |
v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |