summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index 85ba077..bdbcc77 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -714,7 +714,7 @@ void WebFrameImpl::BindToWindowObject(const std::wstring& name,
#if USE(JSC)
KJS::JSGlobalObject* window = frame_->script()->globalObject();
KJS::ExecState* exec = window->globalExec();
- KJS::Bindings::RootObject* root = KJS::Bindings::findRootObject(window);
+ KJS::Bindings::RootObject* root = frame_->script()->bindingRootObject();
ASSERT(exec);
KJS::RuntimeObjectImp* instance = KJS::Bindings::Instance::createRuntimeObject(
exec, KJS::Bindings::CInstance::create(object, root));