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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 // Update the paint properties that affect this object (e.g., properties like | 103 // Update the paint properties that affect this object (e.g., properties like |
104 // paint offset translation) and ensure the context is up to date. Also | 104 // paint offset translation) and ensure the context is up to date. Also |
105 // handles updating the object's paintOffset. | 105 // handles updating the object's paintOffset. |
106 void updatePropertiesForSelf(const LayoutObject&, | 106 void updatePropertiesForSelf(const LayoutObject&, |
107 PaintPropertyTreeBuilderContext&); | 107 PaintPropertyTreeBuilderContext&); |
108 // Update the paint properties that affect children of this object (e.g., | 108 // Update the paint properties that affect children of this object (e.g., |
109 // scroll offset transform) and ensure the context is up to date. | 109 // scroll offset transform) and ensure the context is up to date. |
110 void updatePropertiesForChildren(const LayoutObject&, | 110 void updatePropertiesForChildren(const LayoutObject&, |
111 PaintPropertyTreeBuilderContext&); | 111 PaintPropertyTreeBuilderContext&); |
112 | 112 |
113 // Returns a stable compositor element id for the given layout | |
pdr.
2017/03/16 21:20:05
Nit: remove?
wkorman
2017/03/16 21:53:31
Will fix this as part of cleanup, I think we want
| |
114 // object. Intended for use by the animation subsystem as an opaque identifier | |
115 // to tie animations to their associated property tree nodes. | |
116 /* static CompositorElementId createDomNodeBasedCompositorElementId(const | |
117 * LayoutObject& object); */ | |
118 | |
113 private: | 119 private: |
114 ALWAYS_INLINE static void updatePaintOffset(const LayoutBoxModelObject&, | 120 ALWAYS_INLINE static void updatePaintOffset(const LayoutBoxModelObject&, |
115 PaintPropertyTreeBuilderContext&); | 121 PaintPropertyTreeBuilderContext&); |
116 ALWAYS_INLINE static void updatePaintOffsetTranslation( | 122 ALWAYS_INLINE static void updatePaintOffsetTranslation( |
117 const LayoutBoxModelObject&, | 123 const LayoutBoxModelObject&, |
118 PaintPropertyTreeBuilderContext&); | 124 PaintPropertyTreeBuilderContext&); |
119 ALWAYS_INLINE static void updateForObjectLocationAndSize( | 125 ALWAYS_INLINE static void updateForObjectLocationAndSize( |
120 const LayoutObject&, | 126 const LayoutObject&, |
121 PaintPropertyTreeBuilderContext&); | 127 PaintPropertyTreeBuilderContext&); |
122 ALWAYS_INLINE static void updateTransform(const LayoutObject&, | 128 ALWAYS_INLINE static void updateTransform(const LayoutObject&, |
(...skipping 25 matching lines...) Expand all Loading... | |
148 const LayoutObject&, | 154 const LayoutObject&, |
149 PaintPropertyTreeBuilderContext&); | 155 PaintPropertyTreeBuilderContext&); |
150 ALWAYS_INLINE static void updateOutOfFlowContext( | 156 ALWAYS_INLINE static void updateOutOfFlowContext( |
151 const LayoutObject&, | 157 const LayoutObject&, |
152 PaintPropertyTreeBuilderContext&); | 158 PaintPropertyTreeBuilderContext&); |
153 }; | 159 }; |
154 | 160 |
155 } // namespace blink | 161 } // namespace blink |
156 | 162 |
157 #endif // PaintPropertyTreeBuilder_h | 163 #endif // PaintPropertyTreeBuilder_h |
OLD | NEW |