summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/WebProcess/WebPage/WebPage.cpp')
-rw-r--r--Source/WebKit2/WebProcess/WebPage/WebPage.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
index 8e151818a..eb8067079 100644
--- a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
+++ b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
@@ -1124,6 +1124,11 @@ void WebPage::setFixedLayoutSize(const IntSize& size)
view->forceLayout();
}
+void WebPage::setSuppressScrollbarAnimations(bool suppressAnimations)
+{
+ m_page->setShouldSuppressScrollbarAnimations(suppressAnimations);
+}
+
void WebPage::setPaginationMode(uint32_t mode)
{
Pagination pagination = m_page->pagination();
@@ -3248,7 +3253,7 @@ static bool pageContainsAnyHorizontalScrollbars(Frame* mainFrame)
for (HashSet<ScrollableArea*>::const_iterator it = scrollableAreas->begin(), end = scrollableAreas->end(); it != end; ++it) {
ScrollableArea* scrollableArea = *it;
- if (!scrollableArea->isOnActivePage())
+ if (!scrollableArea->scrollbarsCanBeActive())
continue;
if (hasEnabledHorizontalScrollbar(scrollableArea))