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

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

Issue 2509843004: Disable overlay scrollbars to hide them on non-Mac. (Closed)
Patch Set: Fix tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
index 1ed241d367c727b48a8db187cf872150f62220e4..d7877208a9506bb034b7dc5c4ac2a93f7eb48265 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
@@ -50,6 +50,14 @@ class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay {
m_delayInSeconds = delayInSeconds;
}
+ void paintThumb(GraphicsContext& gc,
+ const Scrollbar& scrollbar,
+ const IntRect& rect) override {
+ if (!scrollbar.enabled())
skobes 2016/11/17 21:16:31 Why isn't this in ScrollbarThemeOverlay?
bokan 2016/11/17 23:22:27 Not drawing a disabled scrollbar is normally handl
+ return;
+ ScrollbarThemeOverlay::paintThumb(gc, scrollbar, rect);
+ }
+
private:
double m_delayInSeconds;
bool isMockTheme() const final { return true; }

Powered by Google App Engine
This is Rietveld 408576698