| 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 const RenderLayerModelObject& paintInvalidationContainer() const { return m_
paintInvalidationContainer; } | 32 const RenderLayerModelObject& paintInvalidationContainer() const { return m_
paintInvalidationContainer; } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 52 LayoutSize m_paintOffset; | 50 LayoutSize m_paintOffset; |
| 53 | 51 |
| 54 const RenderLayerModelObject& m_paintInvalidationContainer; | 52 const RenderLayerModelObject& m_paintInvalidationContainer; |
| 55 | 53 |
| 56 RenderObject& m_renderer; | 54 RenderObject& m_renderer; |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace blink | 57 } // namespace blink |
| 60 | 58 |
| 61 #endif // PaintInvalidationState_h | 59 #endif // PaintInvalidationState_h |
| OLD | NEW |