| Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index df6f35f0c01d18b7e523ee92fe79f9d159a03c20..2a8189250606a4abf60b9c6baa0a4516ffdaf0e7 100644
|
| --- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -777,8 +777,11 @@ bool ScrollingCoordinator::hasVisibleSlowRepaintViewportConstrainedObjects(Frame
|
|
|
| MainThreadScrollingReasons ScrollingCoordinator::mainThreadScrollingReasons() const
|
| {
|
| + // The main thread scrolling reasons are applicable to scrolls of the main
|
| + // frame. If it does not exist or if it is not scrollable, there is no
|
| + // reason to force main thread scrolling.
|
| FrameView* frameView = m_page->mainFrame()->view();
|
| - if (!frameView)
|
| + if (!frameView || !frameView->isScrollable())
|
| return static_cast<MainThreadScrollingReasons>(0);
|
|
|
| MainThreadScrollingReasons mainThreadScrollingReasons = (MainThreadScrollingReasons)0;
|
|
|