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

Unified Diff: third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp

Issue 2811213002: Move ScriptState::GetExecutionContext (Part 6) (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/core/testing/v8/WebCoreTestSupport.cpp
diff --git a/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp b/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
index 1c56c81630cc656f90627f6df1d6d7190051a801..f66ead6b43ca2ed032406ebb628add8e06488b70 100644
--- a/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
+++ b/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
@@ -50,7 +50,7 @@ v8::Local<v8::Value> createInternalsObject(v8::Local<v8::Context> context) {
blink::ScriptState* scriptState = blink::ScriptState::From(context);
v8::Local<v8::Object> global = scriptState->GetContext()->Global();
blink::ExecutionContext* executionContext =
- scriptState->GetExecutionContext();
+ blink::ExecutionContext::From(scriptState);
if (executionContext->IsDocument()) {
return blink::ToV8(blink::Internals::Create(executionContext), global,
scriptState->GetIsolate());
@@ -89,7 +89,7 @@ void installConditionalFeaturesForTesting(
type, scriptState, prototypeObject, interfaceObject);
blink::ExecutionContext* executionContext =
- scriptState->GetExecutionContext();
+ blink::ExecutionContext::From(scriptState);
blink::OriginTrialContext* originTrialContext =
blink::OriginTrialContext::From(
executionContext, blink::OriginTrialContext::kDontCreateIfNotExists);
@@ -110,7 +110,8 @@ void resetInternalsObject(v8::Local<v8::Context> context) {
blink::ScriptState* scriptState = blink::ScriptState::From(context);
blink::ScriptState::Scope scope(scriptState);
- blink::Document* document = ToDocument(scriptState->GetExecutionContext());
+ blink::Document* document =
+ ToDocument(blink::ExecutionContext::From(scriptState));
DCHECK(document);
blink::LocalFrame* frame = document->GetFrame();
// Should the document have been detached, the page is assumed being destroyed

Powered by Google App Engine
This is Rietveld 408576698