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

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

Issue 2741833005: Make PrePaintTreeWalkContext::treeBuilderContext a unique_ptr (Closed)
Patch Set: Created 3 years, 9 months 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool forceSubtreeUpdate = false; 88 bool forceSubtreeUpdate = false;
89 }; 89 };
90 90
91 // Creates paint property tree nodes for special things in the layout tree. 91 // Creates paint property tree nodes for special things in the layout tree.
92 // Special things include but not limit to: overflow clip, transform, fixed-pos, 92 // Special things include but not limit to: overflow clip, transform, fixed-pos,
93 // animation, mask, filter, ... etc. 93 // animation, mask, filter, ... etc.
94 // It expects to be invoked for each layout tree node in DOM order during 94 // It expects to be invoked for each layout tree node in DOM order during
95 // InPrePaint phase. 95 // InPrePaint phase.
96 class PaintPropertyTreeBuilder { 96 class PaintPropertyTreeBuilder {
97 public: 97 public:
98 PaintPropertyTreeBuilderContext setupInitialContext(); 98 void setupInitialContext(PaintPropertyTreeBuilderContext&);
99 // Update the paint properties for a frame and ensure the context is up to 99 // Update the paint properties for a frame and ensure the context is up to
100 // date. 100 // date.
101 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&); 101 void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&);
102 102
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.,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const LayoutObject&, 148 const LayoutObject&,
149 PaintPropertyTreeBuilderContext&); 149 PaintPropertyTreeBuilderContext&);
150 ALWAYS_INLINE static void updateOutOfFlowContext( 150 ALWAYS_INLINE static void updateOutOfFlowContext(
151 const LayoutObject&, 151 const LayoutObject&,
152 PaintPropertyTreeBuilderContext&); 152 PaintPropertyTreeBuilderContext&);
153 }; 153 };
154 154
155 } // namespace blink 155 } // namespace blink
156 156
157 #endif // PaintPropertyTreeBuilder_h 157 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698