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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp

Issue 2590163004: Aura overlay scrollbars shouldn't invalidate thumb on scroll or enabled state. (Closed)
Patch Set: Fix BUILD.gn, make MockScrollableArea constructor protected Created 4 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/ScrollbarThemeOverlay.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
index c2ef26e9df87fb2fab748c72d935133908a0bc94..14878b965bced578d4f7f87378289b66d2df1896 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
@@ -59,6 +59,21 @@ ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness,
m_allowHitTest(allowHitTest),
m_useSolidColor(false) {}
+bool ScrollbarThemeOverlay::shouldRepaintAllPartsOnInvalidation() const {
+ return false;
+}
+
+ScrollbarPart ScrollbarThemeOverlay::invalidateOnThumbPositionChange(
+ const ScrollbarThemeClient&,
+ float oldPosition,
+ float newPosition) const {
+ return NoPart;
+}
+
+ScrollbarPart ScrollbarThemeOverlay::invalidateOnEnabledChange() const {
+ return NoPart;
+}
+
int ScrollbarThemeOverlay::scrollbarThickness(
ScrollbarControlSize controlSize) {
return m_thumbThickness + m_scrollbarMargin;

Powered by Google App Engine
This is Rietveld 408576698