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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 506553004: Make the compositing assert disabler for paint invalidation more targeted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix. 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/RenderView.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 0d39968d532ac8a46fc5299e2f0ac6c0c2979914..bc0241a2111bcd24a4fada99a4a39f7adcb735cc 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -474,6 +474,11 @@ void RenderLayerCompositor::paintInvalidationOnCompositingChange(RenderLayer* la
if (layer->renderer() != &m_renderView && !layer->renderer()->parent())
return;
+ // For querying RenderLayer::compositingState()
+ // Eager invalidation here is correct, since we are invalidating with respect to the previous frame's
+ // compositing state when changing the compositing backing of the layer.
+ DisableCompositingQueryAsserts disabler;
+
layer->paintInvalidator().paintInvalidationIncludingNonCompositingDescendants();
}
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698