| 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 "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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 info.ancestorScrollingLayer = layer; | 71 info.ancestorScrollingLayer = layer; |
| 72 | 72 |
| 73 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) | 73 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) |
| 74 update(child, updateType, info); | 74 update(child, updateType, info); |
| 75 | 75 |
| 76 m_geometryMap.popMappingsToAncestor(layer->parent()); | 76 m_geometryMap.popMappingsToAncestor(layer->parent()); |
| 77 | 77 |
| 78 layer->clearChildNeedsCompositingInputsUpdate(); | 78 layer->clearChildNeedsCompositingInputsUpdate(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 #if !ASSERT_DISABLED | 81 #if ASSERT_ENABLED |
| 82 | 82 |
| 83 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(Ren
derLayer* layer) | 83 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(Ren
derLayer* layer) |
| 84 { | 84 { |
| 85 ASSERT(!layer->childNeedsCompositingInputsUpdate()); | 85 ASSERT(!layer->childNeedsCompositingInputsUpdate()); |
| 86 ASSERT(!layer->needsCompositingInputsUpdate()); | 86 ASSERT(!layer->needsCompositingInputsUpdate()); |
| 87 | 87 |
| 88 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) | 88 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) |
| 89 assertNeedsCompositingInputsUpdateBitsCleared(child); | 89 assertNeedsCompositingInputsUpdateBitsCleared(child); |
| 90 } | 90 } |
| 91 | 91 |
| 92 #endif | 92 #endif |
| 93 | 93 |
| 94 } // namespace WebCore | 94 } // namespace WebCore |
| OLD | NEW |