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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1376003002: Make rendering timeouts work even if paint data received early (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cursor
Patch Set: Rebase that maybe works this time Created 5 years, 3 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 7c84d90115c6c44238406085dd555faa36e63c6c..83791e328286e619bbc730ed234b9757b5f1a762 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -629,6 +629,8 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host,
OnMediaPausedNotification)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
OnFirstVisuallyNonEmptyPaint)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad,
+ OnFirstPaintAfterLoad)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidLoadResourceFromMemoryCache,
OnDidLoadResourceFromMemoryCache)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidDisplayInsecureContent,
@@ -3440,6 +3442,10 @@ void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() {
}
}
+void WebContentsImpl::OnFirstPaintAfterLoad() {
+ GetMainFrame()->GetRenderWidgetHost()->OnFirstPaintAfterLoad();
Charlie Reis 2015/09/30 20:36:19 Why does this need to come through WebContents? S
kenrb 2015/09/30 21:25:02 Done. I was copying how the other QueueMessage()
+}
+
void WebContentsImpl::DidChangeVisibleSSLState() {
if (delegate_) {
delegate_->VisibleSSLStateChanged(this);

Powered by Google App Engine
This is Rietveld 408576698