| 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 ee693987ba58228eafbed3919ce9910543964adb..838e2dab69937ceff070d53d78520eefcf06d23c 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -343,9 +343,13 @@ void ScrollingCoordinator::scrollableAreaScrollbarLayerDidChange(ScrollableArea*
|
| Scrollbar& scrollbar = orientation == HorizontalScrollbar ? *scrollableArea->horizontalScrollbar() : *scrollableArea->verticalScrollbar();
|
| if (scrollbar.isCustomScrollbar()) {
|
| detachScrollbarLayer(scrollbarGraphicsLayer);
|
| + scrollbarGraphicsLayer->platformLayer()->addMainThreadScrollingReasons(MainThreadScrollingReason::kCustomScrollbarScrolling);
|
| return;
|
| }
|
|
|
| + // Invalidate custom scrollbar scrolling reason in case a custom
|
| + // scrollbar becomes a non-custom one.
|
| + scrollbarGraphicsLayer->platformLayer()->clearMainThreadScrollingReasons(MainThreadScrollingReason::kCustomScrollbarScrolling);
|
| WebScrollbarLayer* scrollbarLayer = getWebScrollbarLayer(scrollableArea, orientation);
|
| if (!scrollbarLayer) {
|
| Settings* settings = m_page->mainFrame()->settings();
|
|
|