| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PaintInvalidationState_h | 5 #ifndef PaintInvalidationState_h |
| 6 #define PaintInvalidationState_h | 6 #define PaintInvalidationState_h |
| 7 | 7 |
| 8 #include "platform/geometry/LayoutRect.h" | 8 #include "platform/geometry/LayoutRect.h" |
| 9 #include "platform/transforms/AffineTransform.h" | 9 #include "platform/transforms/AffineTransform.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LayoutBoxModelObject; | 15 class LayoutBoxModelObject; |
| 16 class LayoutObject; | 16 class LayoutObject; |
| 17 class LayoutSVGModelObject; | 17 class LayoutSVGModelObject; |
| 18 class LayoutView; | 18 class LayoutView; |
| 19 | 19 |
| 20 class PaintInvalidationState { | 20 class PaintInvalidationState { |
| 21 ALLOW_ONLY_INLINE_ALLOCATION(); | 21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 22 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); | 22 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); |
| 23 public: | 23 public: |
| 24 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l
ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer); | 24 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l
ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer); |
| 25 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj
ect& layoutObject); | 25 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj
ect& layoutObject); |
| 26 | 26 |
| 27 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>&
pendingDelayedPaintInvalidations) | 27 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>&
pendingDelayedPaintInvalidations) |
| 28 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n
ullptr) { } | 28 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n
ullptr) { } |
| 29 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState&
ownerPaintInvalidationState) | 29 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState&
ownerPaintInvalidationState) |
| 30 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi
ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { } | 30 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi
ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { } |
| 31 | 31 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // SVG root to the userspace _before_ the relevant element. Combining this | 77 // SVG root to the userspace _before_ the relevant element. Combining this |
| 78 // with |m_paintOffset| yields the "final" offset. | 78 // with |m_paintOffset| yields the "final" offset. |
| 79 OwnPtr<AffineTransform> m_svgTransform; | 79 OwnPtr<AffineTransform> m_svgTransform; |
| 80 | 80 |
| 81 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations; | 81 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // PaintInvalidationState_h | 86 #endif // PaintInvalidationState_h |
| OLD | NEW |