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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2770873002: Remove ViewHostMsg_DidFirstPaintAfterLoad (Closed)
Patch Set: Rebased 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
« no previous file with comments | « content/common/view_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 6a0abc7ac40fb115b619ba3fc13e8feeef8eedf5..953d8394cb7790afc3c31fdc135e73adf8457043 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3702,15 +3702,11 @@ 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()) {
+ // Navigations that change the document represent a new content source. Keep
+ // track of that on the widget to help the browser process detect when stale
+ // compositor frames are being shown after a commit.
+ if (is_main_frame_ && !navigation_state->WasWithinSameDocument())
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
« no previous file with comments | « content/common/view_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698