Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: Source/bindings/templates/methods.cpp

Issue 721383003: bindings: Retires ScriptWrappableBase mostly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/templates/methods.cpp
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
index 16e3a5f9cffd7d428d1d2d8f8befefda8b46a6c7..b84b780cd6af3a7f3225ed897ac8c67ca070c6cb 100644
--- a/Source/bindings/templates/methods.cpp
+++ b/Source/bindings/templates/methods.cpp
@@ -573,11 +573,7 @@ static void {{name}}(const v8::FunctionCallbackInfo<v8::Value>& info)
if constructor.is_named_constructor else
'') %}
v8::Handle<v8::Object> wrapper = info.Holder();
-{% if is_script_wrappable %}
impl->associateWithWrapper(&{{constructor_class}}::wrapperTypeInfo, wrapper, info.GetIsolate());
-{% else %}
-V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), impl.get(), &{{constructor_class}}::wrapperTypeInfo, wrapper);
-{% endif %}
v8SetReturnValue(info, wrapper);
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698