| 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 61496993f93e7634d4150b8b3a704c667c61bae5..f593ead9c241b688deb40dcb5b7eae50fc80311e 100644
|
| --- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
|
| @@ -95,6 +95,13 @@ void FirstMeaningfulPaintDetector::notifyPaint() {
|
| "loading", "firstMeaningfulPaintCandidate",
|
| TraceEvent::toTraceTimestamp(m_provisionalFirstMeaningfulPaint), "frame",
|
| document()->frame());
|
| + // Ignore the first meaningful paint candidate as this generally is the first
|
| + // contentful paint itself.
|
| + if (!m_seenFirstMeaningfulPaintCandidate) {
|
| + m_seenFirstMeaningfulPaintCandidate = true;
|
| + return;
|
| + }
|
| + m_paintTiming->markFirstMeaningfulPaintCandidate();
|
| }
|
|
|
| void FirstMeaningfulPaintDetector::checkNetworkStable() {
|
|
|