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

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

Issue 2330863003: Switch to null root property tree nodes [spv2] (Closed)
Patch Set: Rebase from space Created 4 years, 3 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 ObjectPaintProperties_h 5 #ifndef ObjectPaintProperties_h
6 #define ObjectPaintProperties_h 6 #define ObjectPaintProperties_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/geometry/LayoutPoint.h" 9 #include "platform/geometry/LayoutPoint.h"
10 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 10 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
11 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 11 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
12 #include "platform/graphics/paint/GeometryPropertyTreeState.h" 12 #include "platform/graphics/paint/GeometryPropertyTreeState.h"
13 #include "platform/graphics/paint/PaintChunkProperties.h" 13 #include "platform/graphics/paint/PaintChunkProperties.h"
14 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" 14 #include "platform/graphics/paint/ScrollPaintPropertyNode.h"
15 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 15 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
16 #include "wtf/PassRefPtr.h" 16 #include "wtf/PassRefPtr.h"
17 #include "wtf/PtrUtil.h" 17 #include "wtf/PtrUtil.h"
18 #include "wtf/RefPtr.h" 18 #include "wtf/RefPtr.h"
19 #include <memory> 19 #include <memory>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 // This class stores property tree related information associated with a LayoutO bject. 23 // This class stores property tree related information associated with a LayoutO bject.
24 // Currently there are two groups of information: 24 // Currently there are two groups of information:
25 // 1. The set of property nodes created locally by this LayoutObject. 25 // 1. The set of property nodes created locally by this LayoutObject.
26 // 2. [Optional] A suite of property nodes (PaintChunkProperties) and paint offs et 26 // 2. LocalBorderBoxProperties which stores the complete set of property tree no des (including those
27 // that can be used to paint the border box of this LayoutObject. 27 // created by this object as well as those inherited form other objects) used to start painting
28 // this LayoutObject.
28 class CORE_EXPORT ObjectPaintProperties { 29 class CORE_EXPORT ObjectPaintProperties {
29 WTF_MAKE_NONCOPYABLE(ObjectPaintProperties); 30 WTF_MAKE_NONCOPYABLE(ObjectPaintProperties);
30 USING_FAST_MALLOC(ObjectPaintProperties); 31 USING_FAST_MALLOC(ObjectPaintProperties);
31 public: 32 public:
32 struct LocalBorderBoxProperties; 33 struct LocalBorderBoxProperties;
33 34
34 static std::unique_ptr<ObjectPaintProperties> create() 35 static std::unique_ptr<ObjectPaintProperties> create()
35 { 36 {
36 return wrapUnique(new ObjectPaintProperties()); 37 return wrapUnique(new ObjectPaintProperties());
37 } 38 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; 150 RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
150 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset; 151 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset;
151 RefPtr<ScrollPaintPropertyNode> m_scroll; 152 RefPtr<ScrollPaintPropertyNode> m_scroll;
152 153
153 std::unique_ptr<LocalBorderBoxProperties> m_localBorderBoxProperties; 154 std::unique_ptr<LocalBorderBoxProperties> m_localBorderBoxProperties;
154 }; 155 };
155 156
156 } // namespace blink 157 } // namespace blink
157 158
158 #endif // ObjectPaintProperties_h 159 #endif // ObjectPaintProperties_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698