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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2770873002: Remove ViewHostMsg_DidFirstPaintAfterLoad (Closed)
Patch Set: Updated unit tests Created 3 years, 9 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 906788e4b419dfc4a37a2666b8650178c88fde79..726ba3e3cb6a2d58639cd212dbfb3b40ee7cf8cc 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3693,15 +3693,8 @@ void RenderFrameImpl::didCommitProvisionalLoad(
return;
}
- // For navigations that change the document, the browser process needs to be
- // notified of the first paint of that page, so it can cancel the timer that
- // waits for it.
- if (is_main_frame_ && !navigation_state->WasWithinSameDocument()) {
+ if (is_main_frame_ && !navigation_state->WasWithinSameDocument())
Charlie Reis 2017/03/24 16:52:01 Let's leave some comment here so that it's clear w
Saman Sami 2017/03/24 18:04:50 That's a good comment. I'll add it verbatim.
GetRenderWidget()->IncrementContentSourceId();
- render_view_->QueueMessage(
- new ViewHostMsg_DidFirstPaintAfterLoad(render_view_->routing_id_),
- MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
- }
// When we perform a new navigation, we need to update the last committed
// session history entry with state for the page we are leaving. Do this
« content/browser/renderer_host/render_widget_host_impl.h ('K') | « content/common/view_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698