Index: Source/core/layout/LayoutBoxModelObject.cpp |
diff --git a/Source/core/layout/LayoutBoxModelObject.cpp b/Source/core/layout/LayoutBoxModelObject.cpp |
index 7f7e52dab4b00821c2d0e9d6cc0a33e551e49f5e..ee6b932bd7a3fddbe5e5b35f97bf8f4f80d70ee9 100644 |
--- a/Source/core/layout/LayoutBoxModelObject.cpp |
+++ b/Source/core/layout/LayoutBoxModelObject.cpp |
@@ -264,7 +264,12 @@ void LayoutBoxModelObject::invalidateTreeIfNeeded(const PaintInvalidationState& |
// ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()); |
PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState, newPaintInvalidationContainer); |
- clearPaintInvalidationState(paintInvalidationState); |
+ if (reason != PaintInvalidationDelayedFull) { |
+ clearPaintInvalidationState(paintInvalidationState); |
+ } else { |
+ // Mark this object as needing paint invalidation again in the next frame, due to the request for delayed paint invalidation. |
+ setShouldDoFullPaintInvalidation(); |
+ } |
PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, newPaintInvalidationContainer); |
if (reason == PaintInvalidationLocationChange) |