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

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

Issue 2153533002: Fix under-invalidation of frame scrollbar on hover (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PaintInvalidationCapableScrollableArea_h 5 #ifndef PaintInvalidationCapableScrollableArea_h
6 #define PaintInvalidationCapableScrollableArea_h 6 #define PaintInvalidationCapableScrollableArea_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/scroll/ScrollableArea.h" 10 #include "platform/scroll/ScrollableArea.h"
(...skipping 23 matching lines...) Expand all
34 34
35 virtual IntRect scrollCornerAndResizerRect() const { return scrollCornerRect (); } 35 virtual IntRect scrollCornerAndResizerRect() const { return scrollCornerRect (); }
36 36
37 LayoutRect visualRectForScrollbarParts() const override; 37 LayoutRect visualRectForScrollbarParts() const override;
38 38
39 private: 39 private:
40 virtual LayoutBox& boxForScrollControlPaintInvalidation() const = 0; 40 virtual LayoutBox& boxForScrollControlPaintInvalidation() const = 0;
41 virtual LayoutScrollbarPart* scrollCorner() const = 0; 41 virtual LayoutScrollbarPart* scrollCorner() const = 0;
42 virtual LayoutScrollbarPart* resizer() const = 0; 42 virtual LayoutScrollbarPart* resizer() const = 0;
43 43
44 void scrollControlWasSetNeedsPaintInvalidation() override;
45
44 bool m_horizontalScrollbarPreviouslyWasOverlay; 46 bool m_horizontalScrollbarPreviouslyWasOverlay;
45 bool m_verticalScrollbarPreviouslyWasOverlay; 47 bool m_verticalScrollbarPreviouslyWasOverlay;
46 LayoutRect m_horizontalScrollbarPreviousPaintInvalidationRect; 48 LayoutRect m_horizontalScrollbarPreviousPaintInvalidationRect;
47 LayoutRect m_verticalScrollbarPreviousPaintInvalidationRect; 49 LayoutRect m_verticalScrollbarPreviousPaintInvalidationRect;
48 LayoutRect m_scrollCornerAndResizerPreviousPaintInvalidationRect; 50 LayoutRect m_scrollCornerAndResizerPreviousPaintInvalidationRect;
49 }; 51 };
50 52
51 } // namespace blink 53 } // namespace blink
52 54
53 #endif // PaintInvalidationCapableScrollableArea_h 55 #endif // PaintInvalidationCapableScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698