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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.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/LayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
index c6d4d711d83ad29ffc61d08f1915c46f6089ed7f..0568fce1f696fabc45f93da087444ec925d04938 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -682,7 +682,9 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
m_lineBreakToAvoidWidow(-1),
m_didBreakAtLineToAvoidWidow(false),
m_discardMarginBefore(false),
- m_discardMarginAfter(false) {}
+ m_discardMarginAfter(false) {
+ block->m_rareStat.addReason(ReasonLBFRareData);
+ }
static LayoutUnit positiveMarginBeforeDefault(
const LayoutBlockFlow* block) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698