diff --git a/libcef/renderer/v8_impl.cc b/libcef/renderer/v8_impl.cc index c7a3c71e9..1dfc608a0 100644 --- a/libcef/renderer/v8_impl.cc +++ b/libcef/renderer/v8_impl.cc @@ -213,7 +213,7 @@ void GetCefString(v8::Handle str, CefString& out) { v8::Handle FunctionCallbackImpl(const v8::Arguments& args) { v8::HandleScope handle_scope; WebCore::V8RecursionScope recursion_scope( - WebCore::getScriptExecutionContext()); + WebCore::toScriptExecutionContext(v8::Context::GetCurrent())); CefV8Handler* handler = static_cast(v8::External::Unwrap(args.Data())); @@ -247,7 +247,7 @@ v8::Handle AccessorGetterCallbackImpl(v8::Local property, const v8::AccessorInfo& info) { v8::HandleScope handle_scope; WebCore::V8RecursionScope recursion_scope( - WebCore::getScriptExecutionContext()); + WebCore::toScriptExecutionContext(v8::Context::GetCurrent())); v8::Handle obj = info.This(); @@ -282,7 +282,7 @@ void AccessorSetterCallbackImpl(v8::Local property, const v8::AccessorInfo& info) { v8::HandleScope handle_scope; WebCore::V8RecursionScope recursion_scope( - WebCore::getScriptExecutionContext()); + WebCore::toScriptExecutionContext(v8::Context::GetCurrent())); v8::Handle obj = info.This();