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; | 13 class RenderBox; |
14 class RenderInline; | 14 class RenderInline; |
15 class RenderLayerModelObject; | 15 class RenderLayerModelObject; |
16 class RenderObject; | 16 class RenderObject; |
17 class RenderSVGModelObject; | 17 class RenderSVGModelObject; |
18 | 18 |
19 class PaintInvalidationState { | 19 class PaintInvalidationState { |
20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); | 20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); |
21 public: | 21 public: |
22 PaintInvalidationState(const PaintInvalidationState& next, RenderInline& ren
derer, const RenderLayerModelObject& paintInvalidationContainer); | 22 PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelO
bject& renderer, const RenderLayerModelObject& paintInvalidationContainer); |
23 PaintInvalidationState(const PaintInvalidationState& next, RenderBox& render
er, const RenderLayerModelObject& paintInvalidationContainer); | |
24 PaintInvalidationState(const PaintInvalidationState& next, RenderSVGModelObj
ect& renderer, const RenderLayerModelObject& paintInvalidationContainer); | |
25 | 23 |
26 explicit PaintInvalidationState(RenderObject&); | 24 explicit PaintInvalidationState(RenderObject&); |
27 | 25 |
28 const LayoutRect& clipRect() const { return m_clipRect; } | 26 const LayoutRect& clipRect() const { return m_clipRect; } |
29 const LayoutSize& paintOffset() const { return m_paintOffset; } | 27 const LayoutSize& paintOffset() const { return m_paintOffset; } |
30 | 28 |
31 bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; } | 29 bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; } |
32 bool isClipped() const { return m_clipped; } | 30 bool isClipped() const { return m_clipped; } |
33 | 31 |
34 bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInv
alidation; } | 32 bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInv
alidation; } |
(...skipping 21 matching lines...) Expand all Loading... |
56 LayoutSize m_paintOffset; | 54 LayoutSize m_paintOffset; |
57 | 55 |
58 const RenderLayerModelObject& m_paintInvalidationContainer; | 56 const RenderLayerModelObject& m_paintInvalidationContainer; |
59 | 57 |
60 RenderObject& m_renderer; | 58 RenderObject& m_renderer; |
61 }; | 59 }; |
62 | 60 |
63 } // namespace blink | 61 } // namespace blink |
64 | 62 |
65 #endif // PaintInvalidationState_h | 63 #endif // PaintInvalidationState_h |
OLD | NEW |