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" |
11 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 11 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
12 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 12 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
13 #include "wtf/RefPtr.h" | 13 #include "wtf/RefPtr.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class FrameView; | 17 class FrameView; |
18 class LayoutObject; | 18 class LayoutObject; |
19 class ObjectPaintProperties; | |
20 | 19 |
21 // The context for PaintPropertyTreeBuilder. | 20 // The context for PaintPropertyTreeBuilder. |
22 // It's responsible for bookkeeping tree state in other order, for example, the | 21 // It's responsible for bookkeeping tree state in other order, for example, the |
23 // most recent position container seen. | 22 // most recent position container seen. |
24 struct PaintPropertyTreeBuilderContext { | 23 struct PaintPropertyTreeBuilderContext { |
25 // State that propagates on the containing block chain (and so is adjusted | 24 // State that propagates on the containing block chain (and so is adjusted |
26 // when an absolute or fixed position object is encountered). | 25 // when an absolute or fixed position object is encountered). |
27 struct ContainingBlockContext { | 26 struct ContainingBlockContext { |
28 // The combination of a transform and paint offset describes a linear space. | 27 // The combination of a transform and paint offset describes a linear space. |
29 // When a layout object recur to its children, the main context is expected | 28 // When a layout object recur to its children, the main context is expected |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |