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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/savable_resources.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 50d6749b139a644e5db4d6cd5512549954529876..506a5a1a7b604a8499c0a0cbeb4de2f473e35771 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1138,7 +1138,8 @@ bool RenderViewImpl::RenderWidgetWillHandleMouseEvent(
bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
WebFrame* main_frame = webview() ? webview()->MainFrame() : NULL;
if (main_frame && main_frame->IsWebLocalFrame())
- GetContentClient()->SetActiveURL(main_frame->GetDocument().Url());
+ GetContentClient()->SetActiveURL(
+ main_frame->ToWebLocalFrame()->GetDocument().Url());
// Input IPC messages must not be processed if the RenderView is in
// swapped out state.
@@ -2238,7 +2239,7 @@ void RenderViewImpl::OnUpdateScreenInfo(const ScreenInfo& screen_info) {
GURL RenderViewImpl::GetURLForGraphicsContext3D() {
DCHECK(webview());
if (webview()->MainFrame()->IsWebLocalFrame())
- return GURL(webview()->MainFrame()->GetDocument().Url());
+ return GURL(webview()->MainFrame()->ToWebLocalFrame()->GetDocument().Url());
else
return GURL("chrome://gpu/RenderViewImpl::CreateGraphicsContext3D");
}
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/savable_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698