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() || |