Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| index fc48cab3e05c766569f25454af712a7460b27e11..edd94107371598c8687a3d4745bad1fdb972a15d 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -1692,6 +1692,13 @@ void LayoutBox::frameRectChanged() { |
| // Should check this object for paint invalidation. |
| if (!needsLayout()) |
| setMayNeedPaintInvalidation(); |
| + |
| + if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { |
| + // The overflow clip paint property depends on the frame rect |
| + // (see: PaintPropertyTreeBuilder::updateOverflowClip). |
| + if (hasOverflowClip() || styleRef().containsPaint() || hasControlClip()) |
| + setNeedsPaintPropertyUpdate(); |
|
trchen
2016/12/02 22:32:40
This feel weird to me. The frameRect.location() sh
pdr.
2016/12/05 04:31:05
+1, good catch.
This is hard to fix because we do
|
| + } |
| } |
| bool LayoutBox::intersectsVisibleViewport() const { |