| Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| index 24e837dd11c1820dabbd04cdef5923f18c90bb5d..9d8908a99e3df24820b07ec9299ba7befdb89d02 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| @@ -382,7 +382,7 @@ void LayoutBoxModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
|
| invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
|
| }
|
|
|
| -void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRect& r, PaintInvalidationReason invalidationReason) const
|
| +void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRect& r, PaintInvalidationReason invalidationReason, const LayoutObject& object) const
|
| {
|
| // TODO(wangxianzhu): Enable the following assert after paint invalidation for spv2 is ready.
|
| // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| @@ -396,10 +396,10 @@ void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRe
|
| LayoutRect paintInvalidationRect = r;
|
| if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashingLayer()) {
|
| // Note: the subpixel accumulation of layer() does not need to be added here. It is already taken into account.
|
| - squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalidationRect), invalidationReason);
|
| + squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalidationRect), invalidationReason, object);
|
| }
|
| } else {
|
| - layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, invalidationReason);
|
| + layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, invalidationReason, object);
|
| }
|
| }
|
|
|
|
|