| 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 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 Loading... |
| 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 |
| OLD | NEW |