Index: Source/core/page/scrolling/ScrollingCoordinator.cpp |
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp |
index 7e5c633cd1d49d41131fd5077e1c2a89f02ef5c5..2ac84550aedf74064e3d3b39b33b7caa9bae8bce 100644 |
--- a/Source/core/page/scrolling/ScrollingCoordinator.cpp |
+++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp |
@@ -825,11 +825,8 @@ 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 || !frameView->isScrollable()) |
+ if (!frameView) |
return static_cast<MainThreadScrollingReasons>(0); |
MainThreadScrollingReasons mainThreadScrollingReasons = (MainThreadScrollingReasons)0; |