Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 40929ef10c881f0eb92eec07e8ed59e727051ba5..2eecc204478d03caa5cc0b8947cf1191c7fa5ec3 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -3739,6 +3739,19 @@ void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const |
} |
} |
+void RenderLayer::setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() |
+{ |
+ renderer()->setShouldDoFullPaintInvalidation(true); |
+ |
+ // Disable for reading compositingState() below. |
+ DisableCompositingQueryAsserts disabler; |
+ |
+ for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) { |
+ if (child->compositingState() != PaintsIntoOwnBacking && child->compositingState() != PaintsIntoGroupedBacking) |
leviw_travelin_and_unemployed
2014/08/07 18:11:29
Nit: !child->isPaintInvalidationContainer()
Xianzhu
2014/08/07 18:32:40
Done.
|
+ child->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
+ } |
+} |
+ |
DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() |
: m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } |