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 86ef7493b1b3848db3920bef8e3349010341c6ef..ecf56523406d81926d8ab38ceb3fe04ae5cb079c 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -3874,10 +3874,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; |
@@ -3896,7 +3896,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; |