| 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 <memory> |
| 8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 9 #include "platform/geometry/LayoutPoint.h" | 10 #include "platform/geometry/LayoutPoint.h" |
| 10 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 11 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 11 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 12 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 12 #include "platform/graphics/paint/PaintChunkProperties.h" | 13 #include "platform/graphics/paint/PaintChunkProperties.h" |
| 13 #include "platform/graphics/paint/PropertyTreeState.h" | 14 #include "platform/graphics/paint/PropertyTreeState.h" |
| 14 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 15 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
| 15 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 16 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 16 #include "wtf/PassRefPtr.h" | 17 #include "wtf/PassRefPtr.h" |
| 17 #include "wtf/PtrUtil.h" | 18 #include "wtf/PtrUtil.h" |
| 18 #include "wtf/RefPtr.h" | 19 #include "wtf/RefPtr.h" |
| 19 #include <memory> | |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 // This class stores the paint property nodes associated with a LayoutObject. | 23 // This class stores the paint property nodes associated with a LayoutObject. |
| 24 // The object owns each of the property nodes directly set here (e.g, m_cssClip, | 24 // The object owns each of the property nodes directly set here (e.g, m_cssClip, |
| 25 // m_paintOffsetTranslation, etc.) and RefPtrs are only used to harden against | 25 // m_paintOffsetTranslation, etc.) and RefPtrs are only used to harden against |
| 26 // use-after-free bugs. These paint properties are built/updated by | 26 // use-after-free bugs. These paint properties are built/updated by |
| 27 // PaintPropertyTreeBuilder during the PrePaint lifecycle step. | 27 // PaintPropertyTreeBuilder during the PrePaint lifecycle step. |
| 28 // | 28 // |
| 29 // There are two groups of information stored on ObjectPaintProperties: | 29 // There are two groups of information stored on ObjectPaintProperties: |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; | 374 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; |
| 375 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset; | 375 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset; |
| 376 | 376 |
| 377 std::unique_ptr<PropertyTreeState> m_localBorderBoxProperties; | 377 std::unique_ptr<PropertyTreeState> m_localBorderBoxProperties; |
| 378 mutable std::unique_ptr<PropertyTreeState> m_contentsProperties; | 378 mutable std::unique_ptr<PropertyTreeState> m_contentsProperties; |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 } // namespace blink | 381 } // namespace blink |
| 382 | 382 |
| 383 #endif // ObjectPaintProperties_h | 383 #endif // ObjectPaintProperties_h |
| OLD | NEW |