Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 2404213004: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Fix bug in how svg local to border box was updated, no longer crash in tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 }; 76 };
77 77
78 // Creates paint property tree nodes for special things in the layout tree. 78 // Creates paint property tree nodes for special things in the layout tree.
79 // Special things include but not limit to: overflow clip, transform, fixed-pos, 79 // Special things include but not limit to: overflow clip, transform, fixed-pos,
80 // animation, mask, filter, ... etc. 80 // animation, mask, filter, ... etc.
81 // It expects to be invoked for each layout tree node in DOM order during 81 // It expects to be invoked for each layout tree node in DOM order during
82 // InPrePaint phase. 82 // InPrePaint phase.
83 class PaintPropertyTreeBuilder { 83 class PaintPropertyTreeBuilder {
84 public: 84 public:
85 PaintPropertyTreeBuilderContext setupInitialContext(); 85 PaintPropertyTreeBuilderContext setupInitialContext();
86 void buildTreeNodes(FrameView&, PaintPropertyTreeBuilderContext&); 86 // TODO(pdr): Document this before landing.
87 void buildTreeNodesForSelf(const LayoutObject&, 87 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&);
88 PaintPropertyTreeBuilderContext&); 88
89 void buildTreeNodesForChildren(const LayoutObject&, 89 // TODO(pdr): Document this before landing.
90 PaintPropertyTreeBuilderContext&); 90 void updatePropertiesForSelf(const LayoutObject&,
91 PaintPropertyTreeBuilderContext&);
92 void updatePropertiesForChildren(const LayoutObject&,
93 PaintPropertyTreeBuilderContext&);
91 94
92 private: 95 private:
93 static void updatePaintOffsetTranslation(const LayoutObject&, 96 static void updatePaintOffsetTranslation(const LayoutObject&,
94 PaintPropertyTreeBuilderContext&); 97 PaintPropertyTreeBuilderContext&);
95 static void updateTransform(const LayoutObject&, 98 static void updateTransform(const LayoutObject&,
96 PaintPropertyTreeBuilderContext&); 99 PaintPropertyTreeBuilderContext&);
97 static void updateEffect(const LayoutObject&, 100 static void updateEffect(const LayoutObject&,
98 PaintPropertyTreeBuilderContext&); 101 PaintPropertyTreeBuilderContext&);
99 static void updateCssClip(const LayoutObject&, 102 static void updateCssClip(const LayoutObject&,
100 PaintPropertyTreeBuilderContext&); 103 PaintPropertyTreeBuilderContext&);
(...skipping 15 matching lines...) Expand all
116 static void updateScrollAndScrollTranslation( 119 static void updateScrollAndScrollTranslation(
117 const LayoutObject&, 120 const LayoutObject&,
118 PaintPropertyTreeBuilderContext&); 121 PaintPropertyTreeBuilderContext&);
119 static void updateOutOfFlowContext(const LayoutObject&, 122 static void updateOutOfFlowContext(const LayoutObject&,
120 PaintPropertyTreeBuilderContext&); 123 PaintPropertyTreeBuilderContext&);
121 }; 124 };
122 125
123 } // namespace blink 126 } // namespace blink
124 127
125 #endif // PaintPropertyTreeBuilder_h 128 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698