Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1363)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 338993003: Cleanup various WebView/WebFrame APIs to properly handle remote frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unneeded header. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index bf1d7a715e24c1f471fe485bb9f26116565e8ff7..fdceb39f3f1bc1e307377ecefcc9b1ba3fc37359 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2493,9 +2493,7 @@ void WebViewImpl::setPageEncoding(const WebString& encodingName)
WebFrame* WebViewImpl::mainFrame()
{
- // FIXME: This should be updated so it can return both WebLocalFrames and
- // WebRemoteFrames. Right now, it only returns WebLocalFrames.
- return mainFrameImpl();
+ return WebFrame::fromFrame(m_page ? m_page->mainFrame() : 0);
}
WebFrame* WebViewImpl::findFrameByName(

Powered by Google App Engine
This is Rietveld 408576698