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

Unified Diff: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp

Issue 2581633002: [FirstMeaningfulPaint] Do not stop observing layouts before FirstContentfulPaint (Closed)
Patch Set: fix&add test Created 4 years 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 | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
diff --git a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
index f593ead9c241b688deb40dcb5b7eae50fc80311e..cc0bd7788dcd4d3214d42414c1161a084e41a1cb 100644
--- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
+++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
@@ -115,7 +115,8 @@ void FirstMeaningfulPaintDetector::checkNetworkStable() {
void FirstMeaningfulPaintDetector::networkStableTimerFired(TimerBase*) {
if (m_state == Reported || !document() ||
- document()->fetcher()->hasPendingRequest())
+ document()->fetcher()->hasPendingRequest() ||
+ !m_paintTiming->firstContentfulPaint())
return;
if (m_provisionalFirstMeaningfulPaint)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698