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

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

Issue 1577433003: Statistics of LayoutBox rare data reasons Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - 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
Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index be826bc1c531ee9425e981ac64bb80dc8341aae7..c68e7a74664716683e9e3514545d42d5c7ff5042 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -169,6 +169,7 @@ LayoutText::LayoutText(Node* node, PassRefPtr<StringImpl> str)
if (node)
frameView()->incrementVisuallyNonEmptyCharacterCount(m_text.length());
+ m_rareStat.addReason(ReasonLTAll);
}
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698