| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 24d8a94437352889285efe8323a9a9f02d7df551..7a98145fd3d3cbda7665c517c36f27556b823832 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -137,6 +137,7 @@
|
| #include "platform/heap/Handle.h"
|
| #include "platform/network/ResourceLoadPriority.h"
|
| #include "platform/scroll/ProgrammaticScrollAnimator.h"
|
| +#include "platform/scroll/ScrollbarTheme.h"
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "platform/tracing/TraceEvent.h"
|
| #include "platform/weborigin/SchemeRegistry.h"
|
| @@ -3028,9 +3029,11 @@ void Internals::setCapsLockState(bool enabled) {
|
|
|
| bool Internals::setScrollbarVisibilityInScrollableArea(Node* node,
|
| bool visible) {
|
| - if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
|
| - return scrollableArea->scrollAnimator().setScrollbarsVisibleForTesting(
|
| - visible);
|
| + if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) {
|
| + scrollableArea->setScrollbarsHidden(!visible);
|
| + scrollableArea->scrollAnimator().setScrollbarsVisibleForTesting(visible);
|
| + return ScrollbarTheme::theme().usesOverlayScrollbars();
|
| + }
|
| return false;
|
| }
|
|
|
|
|