Index: Source/platform/graphics/GraphicsLayer.cpp |
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp |
index 649ab82e2683b5da128a9af3a5715149d0b009f5..50c3e0be8bf0e6bd17f77099a3e12b085181def1 100644 |
--- a/Source/platform/graphics/GraphicsLayer.cpp |
+++ b/Source/platform/graphics/GraphicsLayer.cpp |
@@ -907,6 +907,19 @@ void GraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect) |
} |
} |
+void GraphicsLayer::setIncludesFirstPaintInvalidation() |
+{ |
+ m_debugInfo.setIncludesFirstPaintInvalidation(true); |
+} |
+ |
+void GraphicsLayer::resetIncludesFirstPaintInvalidationRecursive() |
+{ |
+ m_debugInfo.setIncludesFirstPaintInvalidation(false); |
+ |
+ for (size_t i = 0; i < m_children.size(); ++i) |
+ m_children[i]->resetIncludesFirstPaintInvalidationRecursive(); |
+} |
+ |
void GraphicsLayer::setContentsRect(const IntRect& rect) |
{ |
if (rect == m_contentsRect) |