| 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 "platform/wtf/PassRefPtr.h" |
| 17 #include "wtf/PtrUtil.h" | 18 #include "platform/wtf/PtrUtil.h" |
| 18 #include "wtf/RefPtr.h" | 19 #include "platform/wtf/RefPtr.h" |
| 19 #include <memory> | |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 // This class stores the paint property nodes created by a LayoutObject. The | 23 // This class stores the paint property nodes created by a LayoutObject. The |
| 24 // object owns each of the property nodes directly and RefPtrs are only used to | 24 // object owns each of the property nodes directly and RefPtrs are only used to |
| 25 // harden against use-after-free bugs. These paint properties are built/updated | 25 // harden against use-after-free bugs. These paint properties are built/updated |
| 26 // by PaintPropertyTreeBuilder during the PrePaint lifecycle step. | 26 // by PaintPropertyTreeBuilder during the PrePaint lifecycle step. |
| 27 // | 27 // |
| 28 // [update & clear implementation note] This class has update[property](...) and | 28 // [update & clear implementation note] This class has update[property](...) and |
| 29 // clear[property]() helper functions for efficiently creating and updating | 29 // clear[property]() helper functions for efficiently creating and updating |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 RefPtr<TransformPaintPropertyNode> perspective_; | 317 RefPtr<TransformPaintPropertyNode> perspective_; |
| 318 // TODO(pdr): Only LayoutSVGRoot needs this and it should be moved there. | 318 // TODO(pdr): Only LayoutSVGRoot needs this and it should be moved there. |
| 319 RefPtr<TransformPaintPropertyNode> svg_local_to_border_box_transform_; | 319 RefPtr<TransformPaintPropertyNode> svg_local_to_border_box_transform_; |
| 320 RefPtr<TransformPaintPropertyNode> scroll_translation_; | 320 RefPtr<TransformPaintPropertyNode> scroll_translation_; |
| 321 RefPtr<TransformPaintPropertyNode> scrollbar_paint_offset_; | 321 RefPtr<TransformPaintPropertyNode> scrollbar_paint_offset_; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 } // namespace blink | 324 } // namespace blink |
| 325 | 325 |
| 326 #endif // ObjectPaintProperties_h | 326 #endif // ObjectPaintProperties_h |
| OLD | NEW |