Chromium Code Reviews| 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; } |