| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Creates paint property tree nodes for special things in the layout tree. | 77 // Creates paint property tree nodes for special things in the layout tree. |
| 78 // Special things include but not limit to: overflow clip, transform, fixed-pos, | 78 // Special things include but not limit to: overflow clip, transform, fixed-pos, |
| 79 // animation, mask, filter, ... etc. | 79 // animation, mask, filter, ... etc. |
| 80 // It expects to be invoked for each layout tree node in DOM order during | 80 // It expects to be invoked for each layout tree node in DOM order during |
| 81 // InPrePaint phase. | 81 // InPrePaint phase. |
| 82 class PaintPropertyTreeBuilder { | 82 class PaintPropertyTreeBuilder { |
| 83 public: | 83 public: |
| 84 PaintPropertyTreeBuilderContext setupInitialContext(); | 84 PaintPropertyTreeBuilderContext setupInitialContext(); |
| 85 // Update the paint properties for a frame and ensure the context is up to | 85 // Update the paint properties for a frame and ensure the context is up to |
| 86 // date. | 86 // date. |
| 87 void updateFramePropertiesAndContext(FrameView&, | 87 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&); |
| 88 PaintPropertyTreeBuilderContext&); | |
| 89 | 88 |
| 90 // Update the paint properties that affect this object (e.g., properties like | 89 // Update the paint properties that affect this object (e.g., properties like |
| 91 // paint offset translation) and ensure the context is up to date. | 90 // paint offset translation) and ensure the context is up to date. |
| 92 void updatePropertiesAndContextForSelf(const LayoutObject&, | 91 void updatePropertiesForSelf(const LayoutObject&, |
| 93 PaintPropertyTreeBuilderContext&); | 92 PaintPropertyTreeBuilderContext&); |
| 94 // Update the paint properties that affect children of this object (e.g., | 93 // Update the paint properties that affect children of this object (e.g., |
| 95 // scroll offset transform) and ensure the context is up to date. | 94 // scroll offset transform) and ensure the context is up to date. |
| 96 void updatePropertiesAndContextForChildren(const LayoutObject&, | 95 void updatePropertiesForChildren(const LayoutObject&, |
| 97 PaintPropertyTreeBuilderContext&); | 96 PaintPropertyTreeBuilderContext&); |
| 98 | 97 |
| 99 private: | 98 private: |
| 100 static void updatePaintOffsetTranslation(const LayoutObject&, | 99 static void updatePaintOffsetTranslation(const LayoutObject&, |
| 101 PaintPropertyTreeBuilderContext&); | 100 PaintPropertyTreeBuilderContext&); |
| 102 static void updateTransform(const LayoutObject&, | 101 static void updateTransform(const LayoutObject&, |
| 103 PaintPropertyTreeBuilderContext&); | 102 PaintPropertyTreeBuilderContext&); |
| 104 static void updateTransformForNonRootSVG(const LayoutObject&, | 103 static void updateTransformForNonRootSVG(const LayoutObject&, |
| 105 PaintPropertyTreeBuilderContext&); | 104 PaintPropertyTreeBuilderContext&); |
| 106 static void updateEffect(const LayoutObject&, | 105 static void updateEffect(const LayoutObject&, |
| 107 PaintPropertyTreeBuilderContext&); | 106 PaintPropertyTreeBuilderContext&); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 125 static void updateScrollAndScrollTranslation( | 124 static void updateScrollAndScrollTranslation( |
| 126 const LayoutObject&, | 125 const LayoutObject&, |
| 127 PaintPropertyTreeBuilderContext&); | 126 PaintPropertyTreeBuilderContext&); |
| 128 static void updateOutOfFlowContext(const LayoutObject&, | 127 static void updateOutOfFlowContext(const LayoutObject&, |
| 129 PaintPropertyTreeBuilderContext&); | 128 PaintPropertyTreeBuilderContext&); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace blink | 131 } // namespace blink |
| 133 | 132 |
| 134 #endif // PaintPropertyTreeBuilder_h | 133 #endif // PaintPropertyTreeBuilder_h |
| OLD | NEW |