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

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

Issue 220193003: Style changes shouldn't cause RenderLayerCompositor to rebuild its tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | 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 4dc163ee1db39682f9c3fb41cfad7735eaae0f1b..160d7cf8f42114178155617360910992507f6f2f 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -363,6 +363,7 @@ void RenderLayerCompositor::setNeedsCompositingUpdate(CompositingUpdateType upda
switch (updateType) {
case CompositingUpdateAfterStyleChange:
m_needsToRecomputeCompositingRequirements = true;
+ m_needsToUpdateLayerTreeGeometry = true;
break;
case CompositingUpdateAfterLayout:
m_needsToRecomputeCompositingRequirements = true;
@@ -817,12 +818,8 @@ void RenderLayerCompositor::applyUpdateLayerCompositingStateChickenEggHacks(Rend
{
// See if we need content or clipping layers. Methods called here should assume
// that the compositing state of descendant layers has not been updated yet.
- if (layer->hasCompositedLayerMapping() && layer->compositedLayerMapping()->updateGraphicsLayerConfiguration(GraphicsLayerUpdater::ForceUpdate)) {
+ if (layer->hasCompositedLayerMapping() && layer->compositedLayerMapping()->updateGraphicsLayerConfiguration(GraphicsLayerUpdater::ForceUpdate))
setCompositingLayersNeedRebuild();
- } else if (compositedLayerUpdate == NoCompositingStateChange) {
- if (layer->compositingState() == PaintsIntoOwnBacking || layer->compositingState() == HasOwnBackingButPaintsIntoAncestor)
- setCompositingLayersNeedRebuild();
- }
if (compositedLayerUpdate != NoCompositingStateChange)
allocateOrClearCompositedLayerMapping(layer, computeCompositedLayerUpdate(layer));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698