| Index: third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
|
| index aadd9d15be97de03e1d1701803b9cfd5ddcbbd9d..c10b0ff334ebd57882ba29dabfa52f8a1ebca18e 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
|
| @@ -535,7 +535,7 @@ void {{v8_class_or_partial}}::{{cpp_class}}OriginSafeMethodSetterCallback(v8::Lo
|
| #pragma clang diagnostic push
|
| #pragma clang diagnostic ignored "-Wglobal-constructors"
|
| #endif
|
| -const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedderBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::trace, {{v8_class}}::traceWrappers, 0, {{prepare_prototype_and_interface_object_func}}, "{{interface_name}}", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inheritance}}, WrapperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}} };
|
| +const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedderBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::trace, {{v8_class}}::traceWrappers, {{prepare_prototype_and_interface_object_func}}, "{{interface_name}}", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inheritance}}, WrapperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}} };
|
| #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| #pragma clang diagnostic pop
|
| #endif
|
| @@ -602,36 +602,6 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|
|
|
| {##############################################################################}
|
| -{% block visit_dom_wrapper %}
|
| -{% if has_visit_dom_wrapper %}
|
| -void {{v8_class}}::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper) {
|
| - {% if has_visit_dom_wrapper_custom %}
|
| - {{v8_class}}::visitDOMWrapperCustom(isolate, scriptWrappable, wrapper);
|
| - {% endif %}
|
| - {% if set_wrapper_reference_to or set_wrapper_reference_from %}
|
| - {{cpp_class}}* impl = scriptWrappable->toImpl<{{cpp_class}}>();
|
| - {% endif %}
|
| - {% if set_wrapper_reference_to %}
|
| - {{set_wrapper_reference_to.cpp_type}} {{set_wrapper_reference_to.name}} = impl->{{set_wrapper_reference_to.name}}();
|
| - if ({{set_wrapper_reference_to.name}}) {
|
| - DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, {{set_wrapper_reference_to.name}}, isolate);
|
| - }
|
| - {% endif %}
|
| - {% if set_wrapper_reference_from %}
|
| - // The {{set_wrapper_reference_from}}() method may return a reference or a pointer.
|
| - if (Node* owner = WTF::getPtr(impl->{{set_wrapper_reference_from}}())) {
|
| - Node* root = V8GCController::opaqueRootForGC(isolate, owner);
|
| - isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(root)), wrapper);
|
| - return;
|
| - }
|
| - {% endif %}
|
| -}
|
| -
|
| -{% endif %}
|
| -{% endblock %}
|
| -
|
| -
|
| -{##############################################################################}
|
| {% block constructor_callback %}
|
| {% if constructors or has_custom_constructor or has_event_constructor or has_html_constructor %}
|
| void {{v8_class}}::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|