Index: Source/core/rendering/RenderLayerRepainter.cpp |
diff --git a/Source/core/rendering/RenderLayerRepainter.cpp b/Source/core/rendering/RenderLayerRepainter.cpp |
index fd356c7ed7db1c3cc8072344c3ee2b7601f8b76a..f1583a4fb83237811f489ceb9c1f56f40c5a293c 100644 |
--- a/Source/core/rendering/RenderLayerRepainter.cpp |
+++ b/Source/core/rendering/RenderLayerRepainter.cpp |
@@ -96,14 +96,20 @@ void RenderLayerRepainter::setBackingNeedsPaintInvalidationInRect(const LayoutRe |
// https://bugs.webkit.org/show_bug.cgi?id=61159 describes an unreproducible crash here, |
// so assert but check that the layer is composited. |
ASSERT(m_renderer.compositingState() != NotComposited); |
+ |
+ WebInvalidationDebugAnnotations annotations = WebInvalidationDebugAnnotationsNone; |
+ if (!m_renderer.hadPaintInvalidation()) |
+ annotations = WebInvalidationDebugAnnotationsFirstPaint; |
+ m_renderer.setHadPaintInvalidation(); |
+ |
// FIXME: generalize accessors to backing GraphicsLayers so that this code is squashing-agnostic. |
if (m_renderer.layer()->groupedMapping()) { |
LayoutRect paintInvalidationRect = r; |
paintInvalidationRect.move(m_renderer.layer()->subpixelAccumulation()); |
if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping()->squashingLayer()) |
- squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInvalidationRect)); |
+ squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInvalidationRect), annotations); |
} else { |
- m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r); |
+ m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, annotations); |
} |
} |