| 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 f3b10cccc90ec0c0e0251c0977b3f09a61610a7d..21d917202486441d4f508ecff067c2ceac658fa5 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -276,10 +276,10 @@ void ScrollingCoordinator::removeWebScrollbarLayer(ScrollableArea* scrollableAre
|
| GraphicsLayer::unregisterContentsLayer(scrollbarLayer->layer());
|
| }
|
|
|
| -static PassOwnPtr<WebScrollbarLayer> createScrollbarLayer(Scrollbar* scrollbar)
|
| +static PassOwnPtr<WebScrollbarLayer> createScrollbarLayer(Scrollbar* scrollbar, float deviceScaleFactor)
|
| {
|
| ScrollbarTheme* theme = scrollbar->theme();
|
| - WebScrollbarThemePainter painter(theme, scrollbar);
|
| + WebScrollbarThemePainter painter(theme, scrollbar, deviceScaleFactor);
|
| OwnPtr<WebScrollbarThemeGeometry> geometry(WebScrollbarThemeGeometryNative::create(theme));
|
|
|
| OwnPtr<WebScrollbarLayer> scrollbarLayer = adoptPtr(Platform::current()->compositorSupport()->createScrollbarLayer(WebScrollbarImpl::create(scrollbar), painter, geometry.leakPtr()));
|
| @@ -367,7 +367,7 @@ void ScrollingCoordinator::scrollableAreaScrollbarLayerDidChange(ScrollableArea*
|
| ASSERT(RuntimeEnabledFeatures::overlayScrollbarsEnabled());
|
| webScrollbarLayer = createSolidColorScrollbarLayer(orientation, scrollbar->theme()->thumbThickness(scrollbar), scrollbar->theme()->trackPosition(scrollbar), scrollableArea->shouldPlaceVerticalScrollbarOnLeft());
|
| } else {
|
| - webScrollbarLayer = createScrollbarLayer(scrollbar);
|
| + webScrollbarLayer = createScrollbarLayer(scrollbar, m_page->deviceScaleFactor());
|
| }
|
| scrollbarLayer = addWebScrollbarLayer(scrollableArea, orientation, webScrollbarLayer.release());
|
| }
|
|
|