summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 07:57:39 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 07:57:39 +0000
commitf13f6dcd035ded3dcdaed4e831760bdf25e1d772 (patch)
tree5e3a122cb9fb9ae4b1c16a6980064187833b114b /webkit/glue/webframe_impl.cc
parent64d210fe007c50ac20cfe8962c64a1b5cb85c69c (diff)
downloadchromium_src-f13f6dcd035ded3dcdaed4e831760bdf25e1d772.zip
chromium_src-f13f6dcd035ded3dcdaed4e831760bdf25e1d772.tar.gz
chromium_src-f13f6dcd035ded3dcdaed4e831760bdf25e1d772.tar.bz2
Remove dependencies on the bug-bait V8Proxy::context() API. No behavior change.
Review URL: http://codereview.chromium.org/159628 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index ccd08f4..d59582a 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -785,11 +785,11 @@ NPObject* WebFrameImpl::GetWindowNPObject() {
#if USE(V8)
// Returns the V8 context for this frame, or an empty handle if there is
// none.
-v8::Local<v8::Context> WebFrameImpl::GetScriptContext() {
+v8::Local<v8::Context> WebFrameImpl::GetMainWorldScriptContext() {
if (!frame_)
return v8::Local<v8::Context>();
- return frame_->script()->proxy()->context();
+ return WebCore::V8Proxy::mainWorldContext(frame_);
}
#endif