| 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 30 matching lines...) Expand all Loading... |
| 41 // The clip node describes the accumulated raster clip for the current | 41 // The clip node describes the accumulated raster clip for the current |
| 42 // subtree. Note that the computed raster region in canvas space for a clip | 42 // subtree. Note that the computed raster region in canvas space for a clip |
| 43 // node is independent from the transform and paint offset above. Also the | 43 // node is independent from the transform and paint offset above. Also the |
| 44 // actual raster region may be affected by layerization and occlusion | 44 // actual raster region may be affected by layerization and occlusion |
| 45 // tracking. | 45 // tracking. |
| 46 const ClipPaintPropertyNode* clip = nullptr; | 46 const ClipPaintPropertyNode* clip = nullptr; |
| 47 // The scroll node contains information for scrolling such as the parent | 47 // The scroll node contains information for scrolling such as the parent |
| 48 // scroll space, the extent that can be scrolled, etc. Because scroll nodes | 48 // scroll space, the extent that can be scrolled, etc. Because scroll nodes |
| 49 // reference a scroll offset transform, scroll nodes should be updated if | 49 // reference a scroll offset transform, scroll nodes should be updated if |
| 50 // the transform tree changes. | 50 // the transform tree changes. |
| 51 ScrollPaintPropertyNode* scroll = nullptr; | 51 const ScrollPaintPropertyNode* scroll = nullptr; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 ContainingBlockContext current; | 54 ContainingBlockContext current; |
| 55 | 55 |
| 56 // Separate context for out-of-flow positioned and fixed positioned elements | 56 // Separate context for out-of-flow positioned and fixed positioned elements |
| 57 // are needed because they don't use DOM parent as their containing block. | 57 // are needed because they don't use DOM parent as their containing block. |
| 58 // These additional contexts normally pass through untouched, and are only | 58 // These additional contexts normally pass through untouched, and are only |
| 59 // copied from the main context when the current element serves as the | 59 // copied from the main context when the current element serves as the |
| 60 // containing block of corresponding positioned descendants. Overflow clips | 60 // containing block of corresponding positioned descendants. Overflow clips |
| 61 // are also inherited by containing block tree instead of DOM tree, thus they | 61 // are also inherited by containing block tree instead of DOM tree, thus they |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 PaintPropertyTreeBuilderContext&); | 104 PaintPropertyTreeBuilderContext&); |
| 105 static void updateEffect(const LayoutObject&, | 105 static void updateEffect(const LayoutObject&, |
| 106 PaintPropertyTreeBuilderContext&); | 106 PaintPropertyTreeBuilderContext&); |
| 107 static void updateCssClip(const LayoutObject&, | 107 static void updateCssClip(const LayoutObject&, |
| 108 PaintPropertyTreeBuilderContext&); | 108 PaintPropertyTreeBuilderContext&); |
| 109 static void updateLocalBorderBoxContext(const LayoutObject&, | 109 static void updateLocalBorderBoxContext(const LayoutObject&, |
| 110 PaintPropertyTreeBuilderContext&); | 110 PaintPropertyTreeBuilderContext&); |
| 111 static void updateScrollbarPaintOffset( | 111 static void updateScrollbarPaintOffset( |
| 112 const LayoutObject&, | 112 const LayoutObject&, |
| 113 const PaintPropertyTreeBuilderContext&); | 113 const PaintPropertyTreeBuilderContext&); |
| 114 static void updateMainThreadScrollingReasons( | |
| 115 const LayoutObject&, | |
| 116 PaintPropertyTreeBuilderContext&); | |
| 117 static void updateOverflowClip(const LayoutObject&, | 114 static void updateOverflowClip(const LayoutObject&, |
| 118 PaintPropertyTreeBuilderContext&); | 115 PaintPropertyTreeBuilderContext&); |
| 119 static void updatePerspective(const LayoutObject&, | 116 static void updatePerspective(const LayoutObject&, |
| 120 PaintPropertyTreeBuilderContext&); | 117 PaintPropertyTreeBuilderContext&); |
| 121 static void updateSvgLocalToBorderBoxTransform( | 118 static void updateSvgLocalToBorderBoxTransform( |
| 122 const LayoutObject&, | 119 const LayoutObject&, |
| 123 PaintPropertyTreeBuilderContext&); | 120 PaintPropertyTreeBuilderContext&); |
| 124 static void updateScrollAndScrollTranslation( | 121 static void updateScrollAndScrollTranslation( |
| 125 const LayoutObject&, | 122 const LayoutObject&, |
| 126 PaintPropertyTreeBuilderContext&); | 123 PaintPropertyTreeBuilderContext&); |
| 127 static void updateOutOfFlowContext(const LayoutObject&, | 124 static void updateOutOfFlowContext(const LayoutObject&, |
| 128 PaintPropertyTreeBuilderContext&); | 125 PaintPropertyTreeBuilderContext&); |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 } // namespace blink | 128 } // namespace blink |
| 132 | 129 |
| 133 #endif // PaintPropertyTreeBuilder_h | 130 #endif // PaintPropertyTreeBuilder_h |
| OLD | NEW |