Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1136)

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 448793002: Unified invalidation for repaint-only style change of layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update requestAnimation-translation-leave-traces-expected.txt Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 40929ef10c881f0eb92eec07e8ed59e727051ba5..114c092fecf4580fd83276933358b7eefbdb1ef8 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() in isPaintInvalidationContainer() below.
+ DisableCompositingQueryAsserts disabler;
+
+ for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) {
+ if (!child->isPaintInvalidationContainer())
+ child->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
+ }
+}
+
DisableCompositingQueryAsserts::DisableCompositingQueryAsserts()
: m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { }
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698