| 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 7a739571095415dfd677e44b05786def16d6c3fe..4b0c8365aef5e96fb9ec69f3457bc80a2c1b65e2 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -2042,7 +2042,7 @@ bool LayoutBox::paintedOutputOfObjectHasNoEffect() const
|
| return false;
|
|
|
| // Cannot skip paint invalidation if the box has real things to paint.
|
| - if (getSelectionState() != SelectionNone || hasBoxDecorationBackground() || styleRef().hasVisualOverflowingEffect())
|
| + if (getSelectionState() != SelectionNone || hasBoxDecorationBackground() || styleRef().hasBoxDecorations() || styleRef().hasVisualOverflowingEffect())
|
| return false;
|
|
|
| // If the box has clip, we need issue a paint invalidation to cover the changed part of
|
| @@ -4055,7 +4055,7 @@ PaintInvalidationReason LayoutBox::getPaintInvalidationReason(const PaintInvalid
|
| if (oldBorderBoxSize.height() != newBorderBoxSize.height() && mustInvalidateBackgroundOrBorderPaintOnHeightChange())
|
| return PaintInvalidationBorderBoxChange;
|
|
|
| - return PaintInvalidationIncremental;
|
| + return styleRef().hasBackground() || styleRef().hasBoxDecorations() ? PaintInvalidationIncremental : invalidationReason;
|
| }
|
|
|
| void LayoutBox::incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking)
|
|
|