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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp

Issue 2810743003: Move ScriptState::GetExecutionContext (Part 3) (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
Index: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
index a5b8619dabe9c7de65f20824d50f1af244036509..902a2fd8a8ba2f161401784e68b7dc07cf32f551 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp
@@ -5,6 +5,7 @@
#include "bindings/core/v8/V8BindingForTesting.h"
#include "bindings/core/v8/V8Binding.h"
+#include "core/dom/ExecutionContext.h"
#include "core/frame/Settings.h"
#include "core/testing/DummyPageHolder.h"
@@ -43,7 +44,7 @@ ScriptState* V8TestingScope::GetScriptState() const {
}
ExecutionContext* V8TestingScope::GetExecutionContext() const {
- return GetScriptState()->GetExecutionContext();
+ return ExecutionContext::From(GetScriptState());
}
v8::Isolate* V8TestingScope::GetIsolate() const {

Powered by Google App Engine
This is Rietveld 408576698