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 PrePaintTreeWalk_h | 5 #ifndef PrePaintTreeWalk_h |
6 #define PrePaintTreeWalk_h | 6 #define PrePaintTreeWalk_h |
7 | 7 |
8 #include "core/paint/ClipRect.h" | 8 #include "core/paint/ClipRect.h" |
9 #include "core/paint/PaintInvalidator.h" | 9 #include "core/paint/PaintInvalidator.h" |
10 #include "core/paint/PaintPropertyTreeBuilder.h" | 10 #include "core/paint/PaintPropertyTreeBuilder.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // contaiing block context + effect, in the space of ancestorState adjusted | 38 // contaiing block context + effect, in the space of ancestorState adjusted |
39 // by ancestorPaintOffset. Sets hasClip to true if a clip was applied. | 39 // by ancestorPaintOffset. Sets hasClip to true if a clip was applied. |
40 void computeClipRectForContext( | 40 void computeClipRectForContext( |
41 const PaintPropertyTreeBuilderContext::ContainingBlockContext&, | 41 const PaintPropertyTreeBuilderContext::ContainingBlockContext&, |
42 const EffectPaintPropertyNode*, | 42 const EffectPaintPropertyNode*, |
43 const PropertyTreeState& ancestorState, | 43 const PropertyTreeState& ancestorState, |
44 const LayoutPoint& ancestorPaintOffset, | 44 const LayoutPoint& ancestorPaintOffset, |
45 bool& hasClip, | 45 bool& hasClip, |
46 FloatClipRect&); | 46 FloatClipRect&); |
47 | 47 |
48 bool ALWAYS_INLINE | 48 // Returns true if the tree walk should stop before processing this object. |
49 needsTreeBuilderContextUpdate(const FrameView&, | 49 bool shouldEndWalkBefore(const LayoutObject&, const PrePaintTreeWalkContext&); |
50 const PrePaintTreeWalkContext&); | |
51 bool ALWAYS_INLINE | |
52 needsTreeBuilderContextUpdate(const LayoutObject&, | |
53 const PrePaintTreeWalkContext&); | |
54 | 50 |
55 PaintPropertyTreeBuilder m_propertyTreeBuilder; | 51 PaintPropertyTreeBuilder m_propertyTreeBuilder; |
56 PaintInvalidator m_paintInvalidator; | 52 PaintInvalidator m_paintInvalidator; |
57 GeometryMapper& m_geometryMapper; | 53 GeometryMapper& m_geometryMapper; |
58 }; | 54 }; |
59 | 55 |
60 } // namespace blink | 56 } // namespace blink |
61 | 57 |
62 #endif // PrePaintTreeWalk_h | 58 #endif // PrePaintTreeWalk_h |
OLD | NEW |