summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 21:08:35 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 21:08:35 +0000
commit71ed35fc7ef44f4279a2a65db0e638cc2cc440b9 (patch)
tree050b6d19c833784537c3fa1919afa2e514116511 /webkit/glue/webview_impl.cc
parentf6d426fc52a90ad2dd55e1847aa7212a5bc918bf (diff)
downloadchromium_src-71ed35fc7ef44f4279a2a65db0e638cc2cc440b9.zip
chromium_src-71ed35fc7ef44f4279a2a65db0e638cc2cc440b9.tar.gz
chromium_src-71ed35fc7ef44f4279a2a65db0e638cc2cc440b9.tar.bz2
There are cases where a Frame may outlive its associated Page. Get the
WebViewImpl by accessing it indirectly through the Frame's Page so that we don't have to worry about cleaning up the WebFrameImpl -> WebViewImpl pointer. WebCore already clears the Frame's Page pointer when the Page is destroyed by the WebViewImpl. Patch by Marshall Greenblatt R=darin Review: http://codereview.chromium.org/99283 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 7e41aa9..a5f4835 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -885,7 +885,7 @@ Frame* WebViewImpl::GetFocusedWebCoreFrame() {
// static
WebViewImpl* WebViewImpl::FromPage(WebCore::Page* page) {
- return WebFrameImpl::FromFrame(page->mainFrame())->webview_impl();
+ return WebFrameImpl::FromFrame(page->mainFrame())->GetWebViewImpl();
}
// WebView --------------------------------------------------------------------