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 "wtf/Noncopyable.h" | 9 #include "wtf/Noncopyable.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class RenderBox; | |
14 class RenderInline; | |
15 class RenderLayerModelObject; | 13 class RenderLayerModelObject; |
16 class RenderObject; | 14 class RenderObject; |
17 class RenderView; | 15 class RenderView; |
18 class RenderSVGModelObject; | |
19 | 16 |
20 class PaintInvalidationState { | 17 class PaintInvalidationState { |
21 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); | 18 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); |
22 public: | 19 public: |
23 PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelO
bject& renderer, const RenderLayerModelObject& paintInvalidationContainer); | 20 PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelO
bject& renderer, const RenderLayerModelObject& paintInvalidationContainer); |
24 | 21 |
25 explicit PaintInvalidationState(const RenderView&); | 22 explicit PaintInvalidationState(const RenderView&); |
26 | 23 |
27 const LayoutRect& clipRect() const { return m_clipRect; } | 24 const LayoutRect& clipRect() const { return m_clipRect; } |
28 const LayoutSize& paintOffset() const { return m_paintOffset; } | 25 const LayoutSize& paintOffset() const { return m_paintOffset; } |
(...skipping 23 matching lines...) Expand all Loading... |
52 | 49 |
53 // x/y offset from paint invalidation container. Includes relative positioni
ng and scroll offsets. | 50 // x/y offset from paint invalidation container. Includes relative positioni
ng and scroll offsets. |
54 LayoutSize m_paintOffset; | 51 LayoutSize m_paintOffset; |
55 | 52 |
56 const RenderLayerModelObject& m_paintInvalidationContainer; | 53 const RenderLayerModelObject& m_paintInvalidationContainer; |
57 }; | 54 }; |
58 | 55 |
59 } // namespace blink | 56 } // namespace blink |
60 | 57 |
61 #endif // PaintInvalidationState_h | 58 #endif // PaintInvalidationState_h |
OLD | NEW |