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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h

Issue 1558493002: Reland: Make ScrollbarThemeAura selectively invalidate scrollbar parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ScrollableAreaTest.InvalidatesCompositedScrollbarsIfPartsNeedRepaint for Oilpan Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h
index b5ddd4fe6a8ed457e5b037ba6ddac70f950ff62a..e09ee56ffb3442b73b5f48c39931cf21317da63a 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h
@@ -40,6 +40,8 @@ public:
int scrollbarThickness(ScrollbarControlSize) override;
protected:
+ bool shouldRepaintAllPartsOnInvalidation() const override;
+ ScrollbarPart invalidateOnThumbPositionChange(const ScrollbarThemeClient&, float oldPosition, float newPosition) const override;
void paintTrackPiece(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&, ScrollbarPart) override;
void paintButton(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&, ScrollbarPart) override;
void paintThumb(GraphicsContext&, const ScrollbarThemeClient&, const IntRect&) override;

Powered by Google App Engine
This is Rietveld 408576698