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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.h

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/LayoutInline.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.h b/third_party/WebKit/Source/core/layout/LayoutInline.h
index 8ef9933be27220ea002edfa4953626871fdf2e7c..c86136e501a4894365f688de6249bdc124b16c80 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.h
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.h
@@ -199,6 +199,8 @@ class CORE_EXPORT LayoutInline : public LayoutBoxModelObject {
return alwaysCreateLineBoxesForLayoutInline();
}
void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) {
+ if (alwaysCreateLineBoxes)
+ m_rareStat.addReason(ReasonLICreatesLineBoxes);
setAlwaysCreateLineBoxesForLayoutInline(alwaysCreateLineBoxes);
}
void updateAlwaysCreateLineBoxes(bool fullLayout);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698