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

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

Issue 330163004: Fix V8 callback binding for "CallWith=ThisValue" attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add extra layout test cases from https://codereview.chromium.org/330973002. Created 6 years, 6 months 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/callback_interface.cpp
diff --git a/Source/bindings/templates/callback_interface.cpp b/Source/bindings/templates/callback_interface.cpp
index ade6c6b50c6e9eb03c97081a156ed0c039fa8bd0..5f33caa55ab4a341142f812dfff0a7007281c384 100644
--- a/Source/bindings/templates/callback_interface.cpp
+++ b/Source/bindings/templates/callback_interface.cpp
@@ -45,7 +45,6 @@ namespace WebCore {
CRASH();
{{return_default}};
}
- ASSERT(thisHandle->IsObject());
{% endif %}
{% for argument in method.arguments %}
v8::Handle<v8::Value> {{argument.handle}} = {{argument.cpp_value_to_v8_value}};
@@ -61,7 +60,7 @@ namespace WebCore {
v8::Handle<v8::Value> *argv = 0;
{% endif %}
- {% set this_handle_parameter = 'v8::Handle<v8::Object>::Cast(thisHandle), ' if method.call_with_this_handle else '' %}
+ {% set this_handle_parameter = 'thisHandle, ' if method.call_with_this_handle else '' %}
{% if method.idl_type == 'boolean' %}
return invokeCallback(m_scriptState.get(), m_callback.newLocal(isolate), {{this_handle_parameter}}{{method.arguments | length}}, argv);
{% else %}{# void #}

Powered by Google App Engine
This is Rietveld 408576698