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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 56fcdcaad14c3c8bea7e21c193d6f9675f918caf..78cb7826a0a22484a668f84c40f08de3a0b95bd4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -237,6 +237,8 @@ LayoutObject::LayoutObject(Node* node)
if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffset();
InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter);
+ if (m_node)
+ frameView()->incrementLayoutObjectCount();
}
LayoutObject::~LayoutObject()

Powered by Google App Engine
This is Rietveld 408576698