Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index 2d0e66f81a8c87a706952ff95a8683d1e81f19b1..c9e5aab203235d08fed082c9b66035fecaadc26a 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -364,12 +364,10 @@ void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty |
void RenderBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState) |
{ |
- // Note, we don't want to early out here using shouldCheckForInvalidationAfterLayout as |
- // we have to make sure we go through any positioned objects as they won't be seen in |
- // the normal tree walk. |
+ if (!shouldCheckForSelfOrChildPaintInvalidation()) |
+ return; |
- if (shouldCheckForPaintInvalidation()) |
- RenderBox::invalidateTreeIfNeeded(paintInvalidationState); |
+ RenderBox::invalidateTreeIfNeeded(paintInvalidationState); |
// Take care of positioned objects. This is required as PaintInvalidationState keeps a single clip rect. |
if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects()) { |