Index: third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
index fdb9f733f2be23cde5e32ad82ad60524a106e85b..81c0283da6568abc2fc7f081aafbc9df6cabb4fe 100644 |
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
@@ -56,6 +56,11 @@ ExecutionContext::ExecutionContext() |
ExecutionContext::~ExecutionContext() {} |
+ExecutionContext* ExecutionContext::From(const ScriptState* script_state) { |
+ v8::HandleScope scope(script_state->GetIsolate()); |
+ return ToExecutionContext(script_state->GetContext()); |
+} |
+ |
void ExecutionContext::SuspendSuspendableObjects() { |
DCHECK(!is_context_suspended_); |
NotifySuspendingSuspendableObjects(); |