| Index: Source/core/paint/DeprecatedPaintLayer.cpp
|
| diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| index e959ac12c71119335e8658c459a34e4855746927..d4cdfde30cf69cf9791b58d9f0dd2a4f00619506 100644
|
| --- a/Source/core/paint/DeprecatedPaintLayer.cpp
|
| +++ b/Source/core/paint/DeprecatedPaintLayer.cpp
|
| @@ -327,9 +327,7 @@ void DeprecatedPaintLayer::updateLayerPositionsAfterScrollRecursive(const Double
|
| // the current bounds rect, as the LayoutObject may have moved since the last invalidation.
|
| // FIXME(416535): Ideally, pending invalidations of scrolling content should be stored in
|
| // the coordinate space of the scrolling content layer, so that they need no adjustment.
|
| - LayoutRect invalidationRect = m_layoutObject->previousPaintInvalidationRect();
|
| - invalidationRect.move(LayoutSize(scrollDelta));
|
| - m_layoutObject->setPreviousPaintInvalidationRect(invalidationRect);
|
| + m_layoutObject->adjustPreviousPaintInvalidationForScrollIfNeeded(scrollDelta);
|
| }
|
| for (DeprecatedPaintLayer* child = firstChild(); child; child = child->nextSibling()) {
|
| child->updateLayerPositionsAfterScrollRecursive(scrollDelta,
|
|
|