| 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 "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "platform/graphics/PaintInvalidationReason.h" | 10 #include "platform/graphics/PaintInvalidationReason.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 LayoutPoint computePositionFromPaintInvalidationBacking() const; | 71 LayoutPoint computePositionFromPaintInvalidationBacking() const; |
| 72 | 72 |
| 73 // Returns the rect bounds needed to invalidate paint of this object, | 73 // Returns the rect bounds needed to invalidate paint of this object, |
| 74 // in the space of paint invalidation backing. | 74 // in the space of paint invalidation backing. |
| 75 LayoutRect computePaintInvalidationRectInBacking() const; | 75 LayoutRect computePaintInvalidationRectInBacking() const; |
| 76 | 76 |
| 77 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; | 77 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; |
| 78 | 78 |
| 79 PaintLayer& paintingLayer() const; | 79 PaintLayer& paintingLayer() const; |
| 80 | 80 |
| 81 #if ENABLE(ASSERT) | |
| 82 const LayoutObject& currentObject() const { return m_currentObject; } | 81 const LayoutObject& currentObject() const { return m_currentObject; } |
| 83 #endif | |
| 84 | 82 |
| 85 private: | 83 private: |
| 86 friend class VisualRectMappingTest; | 84 friend class VisualRectMappingTest; |
| 87 | 85 |
| 88 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const; | 86 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const; |
| 89 | 87 |
| 90 void updateForCurrentObject(const PaintInvalidationState& parentState); | 88 void updateForCurrentObject(const PaintInvalidationState& parentState); |
| 91 void updateForNormalChildren(); | 89 void updateForNormalChildren(); |
| 92 | 90 |
| 93 LayoutRect computePaintInvalidationRectInBackingForSVG() const; | 91 LayoutRect computePaintInvalidationRectInBackingForSVG() const; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 154 |
| 157 #ifdef CHECK_FAST_PATH_SLOW_PATH_EQUALITY | 155 #ifdef CHECK_FAST_PATH_SLOW_PATH_EQUALITY |
| 158 void assertFastPathAndSlowPathRectsEqual(const LayoutRect& fastPathRect, con
st LayoutRect& slowPathRect) const; | 156 void assertFastPathAndSlowPathRectsEqual(const LayoutRect& fastPathRect, con
st LayoutRect& slowPathRect) const; |
| 159 bool m_canCheckFastPathSlowPathEquality; | 157 bool m_canCheckFastPathSlowPathEquality; |
| 160 #endif | 158 #endif |
| 161 }; | 159 }; |
| 162 | 160 |
| 163 } // namespace blink | 161 } // namespace blink |
| 164 | 162 |
| 165 #endif // PaintInvalidationState_h | 163 #endif // PaintInvalidationState_h |
| OLD | NEW |