| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef PaintPropertyTreeBuilder_h | 5 #ifndef PaintPropertyTreeBuilder_h |
| 6 #define PaintPropertyTreeBuilder_h | 6 #define PaintPropertyTreeBuilder_h |
| 7 | 7 |
| 8 #include "platform/geometry/LayoutPoint.h" | 8 #include "platform/geometry/LayoutPoint.h" |
| 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 ContainingBlockContext absolutePosition; | 64 ContainingBlockContext absolutePosition; |
| 65 const LayoutObject* containerForAbsolutePosition = nullptr; | 65 const LayoutObject* containerForAbsolutePosition = nullptr; |
| 66 | 66 |
| 67 ContainingBlockContext fixedPosition; | 67 ContainingBlockContext fixedPosition; |
| 68 | 68 |
| 69 // The effect hierarchy is applied by the stacking context tree. It is | 69 // The effect hierarchy is applied by the stacking context tree. It is |
| 70 // guaranteed that every DOM descendant is also a stacking context descendant. | 70 // guaranteed that every DOM descendant is also a stacking context descendant. |
| 71 // Therefore, we don't need extra bookkeeping for effect nodes and can | 71 // Therefore, we don't need extra bookkeeping for effect nodes and can |
| 72 // generate the effect tree from a DOM-order traversal. | 72 // generate the effect tree from a DOM-order traversal. |
| 73 const EffectPaintPropertyNode* currentEffect = nullptr; | 73 const EffectPaintPropertyNode* currentEffect = nullptr; |
| 74 |
| 75 bool isUnderMultiColumnSpanner = false; |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 // Creates paint property tree nodes for special things in the layout tree. | 78 // Creates paint property tree nodes for special things in the layout tree. |
| 77 // Special things include but not limit to: overflow clip, transform, fixed-pos, | 79 // Special things include but not limit to: overflow clip, transform, fixed-pos, |
| 78 // animation, mask, filter, ... etc. | 80 // animation, mask, filter, ... etc. |
| 79 // It expects to be invoked for each layout tree node in DOM order during | 81 // It expects to be invoked for each layout tree node in DOM order during |
| 80 // InPrePaint phase. | 82 // InPrePaint phase. |
| 81 class PaintPropertyTreeBuilder { | 83 class PaintPropertyTreeBuilder { |
| 82 public: | 84 public: |
| 83 PaintPropertyTreeBuilderContext setupInitialContext(); | 85 PaintPropertyTreeBuilderContext setupInitialContext(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 114 static void updateScrollAndScrollTranslation( | 116 static void updateScrollAndScrollTranslation( |
| 115 const LayoutObject&, | 117 const LayoutObject&, |
| 116 PaintPropertyTreeBuilderContext&); | 118 PaintPropertyTreeBuilderContext&); |
| 117 static void updateOutOfFlowContext(const LayoutObject&, | 119 static void updateOutOfFlowContext(const LayoutObject&, |
| 118 PaintPropertyTreeBuilderContext&); | 120 PaintPropertyTreeBuilderContext&); |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace blink | 123 } // namespace blink |
| 122 | 124 |
| 123 #endif // PaintPropertyTreeBuilder_h | 125 #endif // PaintPropertyTreeBuilder_h |
| OLD | NEW |