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

Unified Diff: third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl

Issue 2811833002: Move ScriptState::GetExecutionContext (Part 2) (Closed)
Patch Set: Add 2 sp Created 3 years, 8 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: third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
index e3109b5bdfe5099f86b12639f632f5eb8cd489cb..c417aaa13010a71a7cf191e88763c26a058ce605 100644
--- a/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/callback_interface.cpp.tmpl
@@ -24,7 +24,8 @@ DEFINE_TRACE({{v8_class}}) {
{{method.cpp_type}} {{v8_class}}::{{method.name}}({{method.argument_declarations | join(', ')}}) {
{% set return_default = 'return true'
if method.idl_type == 'boolean' else 'return' %}{# void #}
- ExecutionContext* executionContext = m_scriptState->GetExecutionContext();
+ ExecutionContext* executionContext =
+ ExecutionContext::From(m_scriptState.Get());
if (!executionContext || executionContext->IsContextSuspended() ||
executionContext->IsContextDestroyed())
{{return_default}};
@@ -61,7 +62,7 @@ DEFINE_TRACE({{v8_class}}) {
return !exceptionCatcher.HasCaught();
{% else %}{# void #}
V8ScriptRunner::CallFunction(m_callback.NewLocal(isolate),
- m_scriptState->GetExecutionContext(),
+ ExecutionContext::From(m_scriptState.Get()),
{{this_handle_parameter}},
{{method.arguments | length}},
argv,

Powered by Google App Engine
This is Rietveld 408576698