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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.cpp

Issue 2805333002: Move ScriptState::getExecutionContext (Part 1) (Closed)
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698