| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |