{
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()));
}
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();