Index: Source/web/WebPluginScrollbarImpl.cpp |
diff --git a/Source/web/WebPluginScrollbarImpl.cpp b/Source/web/WebPluginScrollbarImpl.cpp |
index 0085db491e8f676fcae75ea19bbfbdc5f0d24fa6..514755d2f5a3c46d87683a0b9899198f8737be3a 100644 |
--- a/Source/web/WebPluginScrollbarImpl.cpp |
+++ b/Source/web/WebPluginScrollbarImpl.cpp |
@@ -202,8 +202,6 @@ void WebPluginScrollbarImpl::setLocation(const WebRect& rect) |
m_scrollbar->invalidate(); |
int length = m_scrollbar->orientation() == HorizontalScrollbar ? m_scrollbar->width() : m_scrollbar->height(); |
- int pageStep = max(max(static_cast<int>(static_cast<float>(length) * Scrollbar::minFractionToStepWhenPaging()), length - Scrollbar::maxOverlapBetweenPages()), 1); |
- m_scrollbar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep); |
m_scrollbar->setEnabled(m_scrollbar->totalSize() > length); |
m_scrollbar->setProportion(length, m_scrollbar->totalSize()); |
} |