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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp

Issue 2701103003: Let padding change always trigger layout and full paint invalidation (Closed)
Patch Set: Rebase Created 3 years, 10 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 23d2efba1c73b9e55b940bde70e1b4d325eaafe1..a7c502c1570aa4f3fa31d0fd87ab13256a9400a3 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -117,8 +117,7 @@ PaintInvalidationReason BoxPaintInvalidator::computePaintInvalidationReason() {
const ComputedStyle& style = m_box.styleRef();
if ((style.backgroundLayers().thisOrNextLayersUseContentBox() ||
- style.maskLayers().thisOrNextLayersUseContentBox() ||
- style.boxSizing() == EBoxSizing::kBorderBox) &&
+ style.maskLayers().thisOrNextLayersUseContentBox()) &&
previousContentBoxRect() != m_box.contentBoxRect())
return PaintInvalidationContentBoxChange;
@@ -319,11 +318,6 @@ bool BoxPaintInvalidator::needsToSavePreviousBoxGeometries() {
const ComputedStyle& style = m_box.styleRef();
- // If we use border-box sizing we need to track changes in the size of the
- // content box.
- if (style.boxSizing() == EBoxSizing::kBorderBox)
- return true;
-
// 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