Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
index 490cd52c305066dd13695871ac970218c77ea991..3647b1434af14c1e127ab69e6b97d189abdb10e7 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp |
@@ -131,6 +131,10 @@ PartPaintingParams buttonPartPaintingParams(const ScrollbarThemeClient& scrollba |
ScrollbarTheme& ScrollbarTheme::nativeTheme() |
{ |
if (RuntimeEnabledFeatures::overlayScrollbarsEnabled()) { |
+ if (RuntimeEnabledFeatures::hideScrollbarsEnabled()) { |
+ DEFINE_STATIC_LOCAL(ScrollbarThemeOverlay, theme, (0, 0, ScrollbarThemeOverlay::DisallowHitTest, Color())); |
+ return theme; |
+ } |
DEFINE_STATIC_LOCAL(ScrollbarThemeOverlay, theme, (10, 0, ScrollbarThemeOverlay::AllowHitTest)); |
return theme; |
} |