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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp

Issue 1798263002: Rename isTreatedAsOrStackingContext to isStacked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 4 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 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 "core/layout/compositing/CompositingInputsUpdater.h" 5 #include "core/layout/compositing/CompositingInputsUpdater.h"
6 6
7 #include "core/layout/LayoutBlock.h" 7 #include "core/layout/LayoutBlock.h"
8 #include "core/layout/compositing/CompositedLayerMapping.h" 8 #include "core/layout/compositing/CompositedLayerMapping.h"
9 #include "core/layout/compositing/PaintLayerCompositor.h" 9 #include "core/layout/compositing/PaintLayerCompositor.h"
10 #include "core/paint/PaintLayer.h" 10 #include "core/paint/PaintLayer.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 rareProperties.ancestorScrollingLayer = parentLayerOnContainingB lockChain->ancestorScrollingLayer(); 143 rareProperties.ancestorScrollingLayer = parentLayerOnContainingB lockChain->ancestorScrollingLayer();
144 if (parentLayerOnContainingBlockChain->scrollsOverflow()) 144 if (parentLayerOnContainingBlockChain->scrollsOverflow())
145 rareProperties.ancestorScrollingLayer = parentLayerOnContain ingBlockChain; 145 rareProperties.ancestorScrollingLayer = parentLayerOnContain ingBlockChain;
146 146
147 if (layer->layoutObject()->isOutOfFlowPositioned() && !layer->su btreeIsInvisible()) { 147 if (layer->layoutObject()->isOutOfFlowPositioned() && !layer->su btreeIsInvisible()) {
148 const PaintLayer* clippingLayer = properties.clippingContain er ? properties.clippingContainer->enclosingLayer() : layer->compositor()->rootL ayer(); 148 const PaintLayer* clippingLayer = properties.clippingContain er ? properties.clippingContainer->enclosingLayer() : layer->compositor()->rootL ayer();
149 if (hasClippedStackingAncestor(layer, clippingLayer)) 149 if (hasClippedStackingAncestor(layer, clippingLayer))
150 rareProperties.clipParent = clippingLayer; 150 rareProperties.clipParent = clippingLayer;
151 } 151 }
152 152
153 if (layer->stackingNode()->isTreatedAsOrStackingContext() 153 if (layer->stackingNode()->isStacked()
154 && rareProperties.ancestorScrollingLayer 154 && rareProperties.ancestorScrollingLayer
155 && !info.ancestorStackingContext->layoutObject()->isDescenda ntOf(rareProperties.ancestorScrollingLayer->layoutObject())) 155 && !info.ancestorStackingContext->layoutObject()->isDescenda ntOf(rareProperties.ancestorScrollingLayer->layoutObject()))
156 rareProperties.scrollParent = rareProperties.ancestorScrolli ngLayer; 156 rareProperties.scrollParent = rareProperties.ancestorScrolli ngLayer;
157 } 157 }
158 } 158 }
159 159
160 layer->updateAncestorDependentCompositingInputs(properties, rareProperti es, info.hasAncestorWithClipPath); 160 layer->updateAncestorDependentCompositingInputs(properties, rareProperti es, info.hasAncestorWithClipPath);
161 } 161 }
162 162
163 if (layer->stackingNode()->isStackingContext()) 163 if (layer->stackingNode()->isStackingContext())
(...skipping 30 matching lines...) Expand all
194 ASSERT(!layer->childNeedsCompositingInputsUpdate()); 194 ASSERT(!layer->childNeedsCompositingInputsUpdate());
195 ASSERT(!layer->needsCompositingInputsUpdate()); 195 ASSERT(!layer->needsCompositingInputsUpdate());
196 196
197 for (PaintLayer* child = layer->firstChild(); child; child = child->nextSibl ing()) 197 for (PaintLayer* child = layer->firstChild(); child; child = child->nextSibl ing())
198 assertNeedsCompositingInputsUpdateBitsCleared(child); 198 assertNeedsCompositingInputsUpdateBitsCleared(child);
199 } 199 }
200 200
201 #endif 201 #endif
202 202
203 } // namespace blink 203 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698