| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 // Creates paint property tree nodes for special things in the layout tree. | 68 // Creates paint property tree nodes for special things in the layout tree. |
| 69 // Special things include but not limit to: overflow clip, transform, fixed-pos,
animation, | 69 // Special things include but not limit to: overflow clip, transform, fixed-pos,
animation, |
| 70 // mask, filter, ... etc. | 70 // mask, filter, ... etc. |
| 71 // It expects to be invoked for each layout tree node in DOM order during InPreP
aint phase. | 71 // It expects to be invoked for each layout tree node in DOM order during InPreP
aint phase. |
| 72 class PaintPropertyTreeBuilder { | 72 class PaintPropertyTreeBuilder { |
| 73 public: | 73 public: |
| 74 void buildTreeRootNodes(FrameView&, PaintPropertyTreeBuilderContext&); | 74 void buildTreeRootNodes(FrameView&, PaintPropertyTreeBuilderContext&); |
| 75 void buildTreeNodes(FrameView&, PaintPropertyTreeBuilderContext&); | 75 void buildTreeNodes(FrameView&, PaintPropertyTreeBuilderContext&); |
| 76 void buildTreeNodes(const LayoutObject&, PaintPropertyTreeBuilderContext&); | 76 void buildTreeNodesForSelf(const LayoutObject&, PaintPropertyTreeBuilderCont
ext&); |
| 77 void buildTreeNodesForChildren(const LayoutObject&, PaintPropertyTreeBuilder
Context&); |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 static void updatePaintOffsetTranslation(const LayoutObject&, PaintPropertyT
reeBuilderContext&); | 80 static void updatePaintOffsetTranslation(const LayoutObject&, PaintPropertyT
reeBuilderContext&); |
| 80 static void updateTransform(const LayoutObject&, PaintPropertyTreeBuilderCon
text&); | 81 static void updateTransform(const LayoutObject&, PaintPropertyTreeBuilderCon
text&); |
| 81 static void updateEffect(const LayoutObject&, PaintPropertyTreeBuilderContex
t&); | 82 static void updateEffect(const LayoutObject&, PaintPropertyTreeBuilderContex
t&); |
| 82 static void updateCssClip(const LayoutObject&, PaintPropertyTreeBuilderConte
xt&); | 83 static void updateCssClip(const LayoutObject&, PaintPropertyTreeBuilderConte
xt&); |
| 83 static void updateLocalBorderBoxContext(const LayoutObject&, const PaintProp
ertyTreeBuilderContext&); | 84 static void updateLocalBorderBoxContext(const LayoutObject&, const PaintProp
ertyTreeBuilderContext&); |
| 84 static void updateScrollbarPaintOffset(const LayoutObject&, const PaintPrope
rtyTreeBuilderContext&); | 85 static void updateScrollbarPaintOffset(const LayoutObject&, const PaintPrope
rtyTreeBuilderContext&); |
| 85 static void updateOverflowClip(const LayoutObject&, PaintPropertyTreeBuilder
Context&); | 86 static void updateOverflowClip(const LayoutObject&, PaintPropertyTreeBuilder
Context&); |
| 86 static void updatePerspective(const LayoutObject&, PaintPropertyTreeBuilderC
ontext&); | 87 static void updatePerspective(const LayoutObject&, PaintPropertyTreeBuilderC
ontext&); |
| 87 static void updateSvgLocalToBorderBoxTransform(const LayoutObject&, PaintPro
pertyTreeBuilderContext&); | 88 static void updateSvgLocalToBorderBoxTransform(const LayoutObject&, PaintPro
pertyTreeBuilderContext&); |
| 88 static void updateScrollTranslation(const LayoutObject&, PaintPropertyTreeBu
ilderContext&); | 89 static void updateScrollTranslation(const LayoutObject&, PaintPropertyTreeBu
ilderContext&); |
| 89 static void updateOutOfFlowContext(const LayoutObject&, PaintPropertyTreeBui
lderContext&); | 90 static void updateOutOfFlowContext(const LayoutObject&, PaintPropertyTreeBui
lderContext&); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace blink | 93 } // namespace blink |
| 93 | 94 |
| 94 #endif // PaintPropertyTreeBuilder_h | 95 #endif // PaintPropertyTreeBuilder_h |
| OLD | NEW |