| Index: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
|
| index aac9bb4255313c6870002f840f5ac9720a846230..beb334dad4de58d9cd1c9bb7aabcaf4771d632a1 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
|
| @@ -295,6 +295,10 @@ void ScrollbarTheme::splitTrack(const ScrollbarThemeClient& scrollbar, const Int
|
|
|
| ScrollbarTheme& ScrollbarTheme::theme()
|
| {
|
| + if (RuntimeEnabledFeatures::hideScrollbarsEnabled()) {
|
| + DEFINE_STATIC_LOCAL(ScrollbarThemeOverlayMock, hiddenMockTheme, (ScrollbarThemeOverlayMock::HideScrollbars));
|
| + return hiddenMockTheme;
|
| + }
|
| if (ScrollbarTheme::mockScrollbarsEnabled()) {
|
| if (RuntimeEnabledFeatures::overlayScrollbarsEnabled()) {
|
| DEFINE_STATIC_LOCAL(ScrollbarThemeOverlayMock, overlayMockTheme, ());
|
|
|