Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h

Issue 2457023002: Replace coversExtraPixels with simpler logic (Closed)
Patch Set: - Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 : m_box(box), m_context(context) {} 24 : m_box(box), m_context(context) {}
25 25
26 static void boxWillBeDestroyed(const LayoutBox&); 26 static void boxWillBeDestroyed(const LayoutBox&);
27 27
28 PaintInvalidationReason invalidatePaintIfNeeded(); 28 PaintInvalidationReason invalidatePaintIfNeeded();
29 29
30 private: 30 private:
31 PaintInvalidationReason computePaintInvalidationReason(); 31 PaintInvalidationReason computePaintInvalidationReason();
32 32
33 bool incrementallyInvalidatePaint(); 33 bool incrementallyInvalidatePaint();
34 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutRect&);
35 34
36 bool needsToSavePreviousBoxSizes(); 35 bool needsToSavePreviousBoxSizes();
37 void savePreviousBoxSizesIfNeeded(); 36 void savePreviousBoxSizesIfNeeded();
38 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize); 37 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize);
39 38
40 const LayoutBox& m_box; 39 const LayoutBox& m_box;
41 const PaintInvalidatorContext& m_context; 40 const PaintInvalidatorContext& m_context;
42 }; 41 };
43 42
44 } // namespace blink 43 } // namespace blink
45 44
46 #endif 45 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698