| 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/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class LayoutBoxModelObject; | 15 class LayoutBoxModelObject; |
| 15 class LayoutObject; | 16 class LayoutObject; |
| 16 class LayoutSVGModelObject; | 17 class LayoutSVGModelObject; |
| 17 class LayoutView; | 18 class LayoutView; |
| 18 | 19 |
| 19 class PaintInvalidationState { | 20 class PaintInvalidationState { |
| 21 STACK_ALLOCATED(); |
| 20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); | 22 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); |
| 21 public: | 23 public: |
| 22 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l
ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer); | 24 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l
ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer); |
| 23 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj
ect& layoutObject); | 25 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj
ect& layoutObject); |
| 24 | 26 |
| 25 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>&
pendingDelayedPaintInvalidations) | 27 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>&
pendingDelayedPaintInvalidations) |
| 26 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n
ullptr) { } | 28 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n
ullptr) { } |
| 27 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState&
ownerPaintInvalidationState) | 29 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState&
ownerPaintInvalidationState) |
| 28 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi
ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { } | 30 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi
ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { } |
| 29 | 31 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // SVG root to the userspace _before_ the relevant element. Combining this | 73 // SVG root to the userspace _before_ the relevant element. Combining this |
| 72 // with |m_paintOffset| yields the "final" offset. | 74 // with |m_paintOffset| yields the "final" offset. |
| 73 OwnPtr<AffineTransform> m_svgTransform; | 75 OwnPtr<AffineTransform> m_svgTransform; |
| 74 | 76 |
| 75 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations; | 77 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations; |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace blink | 80 } // namespace blink |
| 79 | 81 |
| 80 #endif // PaintInvalidationState_h | 82 #endif // PaintInvalidationState_h |
| OLD | NEW |