| 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 a51eff04ecaa61b967a46bbe529ba4078db00523..73e139de46f64193ce9eeb4c30ea34aae028b209 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -3850,10 +3850,10 @@ bool LayoutBox::hasNonCompositedScrollbars() const
|
| return false;
|
| }
|
|
|
| -PaintInvalidationReason LayoutBox::getPaintInvalidationReason(const LayoutBoxModelObject& paintInvalidationContainer,
|
| +PaintInvalidationReason LayoutBox::getPaintInvalidationReason(const PaintInvalidationState& paintInvalidationState,
|
| const LayoutRect& oldBounds, const LayoutPoint& oldLocation, const LayoutRect& newBounds, const LayoutPoint& newLocation) const
|
| {
|
| - PaintInvalidationReason invalidationReason = LayoutBoxModelObject::getPaintInvalidationReason(paintInvalidationContainer, oldBounds, oldLocation, newBounds, newLocation);
|
| + PaintInvalidationReason invalidationReason = LayoutBoxModelObject::getPaintInvalidationReason(paintInvalidationState, oldBounds, oldLocation, newBounds, newLocation);
|
| if (isFullPaintInvalidationReason(invalidationReason))
|
| return invalidationReason;
|
|
|
| @@ -3872,7 +3872,7 @@ PaintInvalidationReason LayoutBox::getPaintInvalidationReason(const LayoutBoxMod
|
| // because the difference between oldBounds and newBounds doesn't cover all area needing invalidation.
|
| // FIXME: Should also consider ancestor transforms since paintInvalidationContainer. crbug.com/426111.
|
| if (invalidationReason == PaintInvalidationIncremental
|
| - && paintInvalidationContainer != this
|
| + && paintInvalidationState.paintInvalidationContainer() != this
|
| && hasLayer() && layer()->transform() && !layer()->transform()->isIdentityOrTranslation())
|
| return PaintInvalidationBoundsChange;
|
|
|
|
|