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

Side by Side Diff: Source/core/rendering/compositing/CompositingInputsUpdater.cpp

Issue 714933002: Set relayoutChildren to 'true' only if size change happens in Table (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: wrong patch Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/rendering/compositing/CompositingInputsUpdater.h" 6 #include "core/rendering/compositing/CompositingInputsUpdater.h"
7 7
8 #include "core/rendering/RenderBlock.h" 8 #include "core/rendering/RenderBlock.h"
9 #include "core/rendering/RenderLayer.h" 9 #include "core/rendering/RenderLayer.h"
10 #include "core/rendering/compositing/CompositedLayerMapping.h" 10 #include "core/rendering/compositing/CompositedLayerMapping.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return false; 89 return false;
90 } 90 }
91 91
92 void CompositingInputsUpdater::updateRecursive(RenderLayer* layer, UpdateType up dateType, AncestorInfo info) 92 void CompositingInputsUpdater::updateRecursive(RenderLayer* layer, UpdateType up dateType, AncestorInfo info)
93 { 93 {
94 if (!layer->childNeedsCompositingInputsUpdate() && updateType != ForceUpdate ) 94 if (!layer->childNeedsCompositingInputsUpdate() && updateType != ForceUpdate )
95 return; 95 return;
96 96
97 m_geometryMap.pushMappingsToAncestor(layer, layer->parent()); 97 m_geometryMap.pushMappingsToAncestor(layer, layer->parent());
98 98
99 if (layer->hasCompositedLayerMapping()) 99 if (layer->compositedLayerMapping())
100 info.enclosingCompositedLayer = layer; 100 info.enclosingCompositedLayer = layer;
101 101
102 if (layer->needsCompositingInputsUpdate()) { 102 if (layer->needsCompositingInputsUpdate()) {
103 if (info.enclosingCompositedLayer) 103 if (info.enclosingCompositedLayer)
104 info.enclosingCompositedLayer->compositedLayerMapping()->setNeedsGra phicsLayerUpdate(GraphicsLayerUpdateSubtree); 104 info.enclosingCompositedLayer->compositedLayerMapping()->setNeedsGra phicsLayerUpdate(GraphicsLayerUpdateSubtree);
105 updateType = ForceUpdate; 105 updateType = ForceUpdate;
106 } 106 }
107 107
108 if (updateType == ForceUpdate) { 108 if (updateType == ForceUpdate) {
109 RenderLayer::AncestorDependentCompositingInputs properties; 109 RenderLayer::AncestorDependentCompositingInputs properties;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ASSERT(!layer->childNeedsCompositingInputsUpdate()); 188 ASSERT(!layer->childNeedsCompositingInputsUpdate());
189 ASSERT(!layer->needsCompositingInputsUpdate()); 189 ASSERT(!layer->needsCompositingInputsUpdate());
190 190
191 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib ling()) 191 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib ling())
192 assertNeedsCompositingInputsUpdateBitsCleared(child); 192 assertNeedsCompositingInputsUpdateBitsCleared(child);
193 } 193 }
194 194
195 #endif 195 #endif
196 196
197 } // namespace blink 197 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698