Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / testing / v8 / WebCoreTestSupport.cpp
index f28fecb..45e2e70 100644 (file)
@@ -43,7 +43,7 @@ void injectInternalsObject(v8::Local<v8::Context> context)
 {
     v8::Context::Scope contextScope(context);
     v8::HandleScope scope(context->GetIsolate());
-    ExecutionContext* scriptContext = getExecutionContext();
+    ExecutionContext* scriptContext = currentExecutionContext(context->GetIsolate());
     if (scriptContext->isDocument())
         context->Global()->Set(v8::String::NewFromUtf8(context->GetIsolate(), Internals::internalsId), toV8(Internals::create(toDocument(scriptContext)), v8::Handle<v8::Object>(), context->GetIsolate()));
 }
@@ -57,7 +57,7 @@ void resetInternalsObject(v8::Local<v8::Context> context)
     v8::Context::Scope contextScope(context);
     v8::HandleScope scope(context->GetIsolate());
 
-    ExecutionContext* scriptContext = getExecutionContext();
+    ExecutionContext* scriptContext = currentExecutionContext(context->GetIsolate());
     Page* page = toDocument(scriptContext)->frame()->page();
     Internals::resetToConsistentState(page);
     InternalSettings::from(page)->resetToConsistentState();