| 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 ad0085bc03fa3b83f7b40eee9f8658455afc8529..27f0dde5aaa5408fc8ccf85bb8d92a6033482dba 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| @@ -175,11 +175,15 @@ ScrollbarThemeOverlay& ScrollbarThemeOverlay::mobileTheme()
|
| {
|
| static ScrollbarThemeOverlay* theme;
|
| if (!theme) {
|
| - WebThemeEngine::ScrollbarStyle style = { 3, 3, 0x80808080 }; // default style
|
| - if (Platform::current()->themeEngine()) {
|
| - Platform::current()->themeEngine()->getOverlayScrollbarStyle(&style);
|
| + if (RuntimeEnabledFeatures::hideScrollbarsEnabled()) {
|
| + theme = new ScrollbarThemeOverlay(0, 0, ScrollbarThemeOverlay::DisallowHitTest, Color());
|
| + } else {
|
| + WebThemeEngine::ScrollbarStyle style = { 3, 3, 0x80808080 }; // default style
|
| + if (Platform::current()->themeEngine()) {
|
| + Platform::current()->themeEngine()->getOverlayScrollbarStyle(&style);
|
| + }
|
| + theme = new ScrollbarThemeOverlay(style.thumbThickness, style.scrollbarMargin, ScrollbarThemeOverlay::DisallowHitTest, Color(style.color));
|
| }
|
| - theme = new ScrollbarThemeOverlay(style.thumbThickness, style.scrollbarMargin, ScrollbarThemeOverlay::DisallowHitTest, Color(style.color));
|
| }
|
| return *theme;
|
| }
|
|
|