| 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
|
|
|