| 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/transforms/AffineTransform.h" | 10 #include "platform/transforms/AffineTransform.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 PaintLayer& enclosingSelfPaintingLayer(const LayoutObject&) const; | 78 PaintLayer& enclosingSelfPaintingLayer(const LayoutObject&) const; |
| 79 | 79 |
| 80 #if ENABLE(ASSERT) | 80 #if ENABLE(ASSERT) |
| 81 const LayoutObject& currentObject() const { return m_currentObject; } | 81 const LayoutObject& currentObject() const { return m_currentObject; } |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 friend class VisualRectMappingTest; | 85 friend class VisualRectMappingTest; |
| 86 | 86 |
| 87 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const; |
| 88 |
| 89 void updateForCurrentObject(const PaintInvalidationState& parentState); |
| 87 void updateForNormalChildren(); | 90 void updateForNormalChildren(); |
| 88 | 91 |
| 89 LayoutRect computePaintInvalidationRectInBackingForSVG() const; | 92 LayoutRect computePaintInvalidationRectInBackingForSVG() const; |
| 90 | 93 |
| 91 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect); | 94 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect); |
| 92 | 95 |
| 93 const LayoutObject& m_currentObject; | 96 const LayoutObject& m_currentObject; |
| 94 | 97 |
| 95 bool m_forcedSubtreeInvalidationWithinContainer; | 98 bool m_forcedSubtreeInvalidationWithinContainer; |
| 96 bool m_forcedSubtreeInvalidationRectUpdateWithinContainer; | 99 bool m_forcedSubtreeInvalidationRectUpdateWithinContainer; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 PaintLayer& m_enclosingSelfPaintingLayer; | 140 PaintLayer& m_enclosingSelfPaintingLayer; |
| 138 | 141 |
| 139 #if ENABLE(ASSERT) | 142 #if ENABLE(ASSERT) |
| 140 bool m_didUpdateForChildren; | 143 bool m_didUpdateForChildren; |
| 141 #endif | 144 #endif |
| 142 }; | 145 }; |
| 143 | 146 |
| 144 } // namespace blink | 147 } // namespace blink |
| 145 | 148 |
| 146 #endif // PaintInvalidationState_h | 149 #endif // PaintInvalidationState_h |
| OLD | NEW |