| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BoxPaintInvalidator_h | 5 #ifndef BoxPaintInvalidator_h |
| 6 #define BoxPaintInvalidator_h | 6 #define BoxPaintInvalidator_h |
| 7 | 7 |
| 8 #include "platform/graphics/PaintInvalidationReason.h" | 8 #include "platform/graphics/PaintInvalidationReason.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const LayoutRect& oldLayoutOverflow, | 33 const LayoutRect& oldLayoutOverflow, |
| 34 const LayoutRect& newLayoutOverflow); | 34 const LayoutRect& newLayoutOverflow); |
| 35 void invalidateScrollingContentsBackgroundIfNeeded(); | 35 void invalidateScrollingContentsBackgroundIfNeeded(); |
| 36 | 36 |
| 37 PaintInvalidationReason computePaintInvalidationReason(); | 37 PaintInvalidationReason computePaintInvalidationReason(); |
| 38 | 38 |
| 39 bool incrementallyInvalidatePaint(PaintInvalidationReason, | 39 bool incrementallyInvalidatePaint(PaintInvalidationReason, |
| 40 const LayoutRect& oldRect, | 40 const LayoutRect& oldRect, |
| 41 const LayoutRect& newRect); | 41 const LayoutRect& newRect); |
| 42 | 42 |
| 43 bool needsToSavePreviousBoxGeometries(); | 43 bool needsToSavePreviousOtherBoxGeometries(); |
| 44 void savePreviousBoxGeometriesIfNeeded(); | 44 void savePreviousBoxGeometriesIfNeeded(); |
| 45 LayoutRect previousContentBoxRect(); | |
| 46 LayoutRect previousLayoutOverflowRect(); | |
| 47 | 45 |
| 48 const LayoutBox& m_box; | 46 const LayoutBox& m_box; |
| 49 const PaintInvalidatorContext& m_context; | 47 const PaintInvalidatorContext& m_context; |
| 50 }; | 48 }; |
| 51 | 49 |
| 52 } // namespace blink | 50 } // namespace blink |
| 53 | 51 |
| 54 #endif | 52 #endif |
| OLD | NEW |