| Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index 833dd7e51505056c4ac95379d51e5bbcc2a97643..c60f71d35909e65b4565fd87e7da1153106f748f 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -318,9 +318,16 @@ static std::unique_ptr<WebScrollbarLayer> createScrollbarLayer(
|
| std::unique_ptr<WebScrollbarThemeGeometry> geometry(
|
| WebScrollbarThemeGeometryNative::create(theme));
|
|
|
| - std::unique_ptr<WebScrollbarLayer> scrollbarLayer =
|
| - Platform::current()->compositorSupport()->createScrollbarLayer(
|
| - WebScrollbarImpl::create(&scrollbar), painter, std::move(geometry));
|
| + std::unique_ptr<WebScrollbarLayer> scrollbarLayer;
|
| + if (theme.usesOverlayScrollbars() && theme.usesNinePatchThumbResource()) {
|
| + scrollbarLayer =
|
| + Platform::current()->compositorSupport()->createOverlayScrollbarLayer(
|
| + WebScrollbarImpl::create(&scrollbar), painter, std::move(geometry));
|
| + } else {
|
| + scrollbarLayer =
|
| + Platform::current()->compositorSupport()->createScrollbarLayer(
|
| + WebScrollbarImpl::create(&scrollbar), painter, std::move(geometry));
|
| + }
|
| GraphicsLayer::registerContentsLayer(scrollbarLayer->layer());
|
| return scrollbarLayer;
|
| }
|
|
|