Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 62447b830be9fe0fd91d38a5bd5bdad7bbbfab2c..6e9ef607248ebb712d07200cb038c2ebfab60954 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -3159,6 +3159,21 @@ void RenderObject::invalidatePaintIncludingNonCompositingDescendantsInternal(con |
} |
} |
+void forceRecomputePaintInvalidationRectsIncludingNonCompositingDescendants(RenderObject* renderer) |
+{ |
+ // We clear the previous paint invalidation rect as it's wrong (paint invaliation container |
+ // changed, ...). Forcing a full invalidation will make us recompute it. Also we are not |
+ // changing the previous position from our paint invalidation container, which is fine as |
+ // we want a full paint invalidation anyway. |
+ renderer->setPreviousPaintInvalidationRect(LayoutRect()); |
+ renderer->setShouldDoFullPaintInvalidation(); |
+ |
+ for (RenderObject* child = renderer->slowFirstChild(); child; child = child->nextSibling()) { |
+ if (!child->isPaintInvalidationContainer()) |
+ forceRecomputePaintInvalidationRectsIncludingNonCompositingDescendants(child); |
+ } |
+} |
+ |
} // namespace blink |