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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.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/paint/BoxPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
index 96432ee50312689f1eaaf9cfbd4b74b02ee2f96f..22e8fffe0021118a6cdf279d77668d4cfcebba59 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -299,6 +299,11 @@ bool BoxPaintInvalidator::
const ComputedStyle& style = m_box.styleRef();
+ if (m_box.contentBoxRect() != m_box.borderBoxRect())
+ m_box.m_rareStat.addReason(ReasonLBContentBoxDiff);
+ if (m_box.layoutOverflowRect() != m_box.borderBoxRect())
+ m_box.m_rareStat.addReason(ReasonLBLayoutOverflowDiff);
+
// Background and mask layers can depend on other boxes than border box. See
// crbug.com/490533
if ((style.backgroundLayers().thisOrNextLayersUseContentBox() ||

Powered by Google App Engine
This is Rietveld 408576698