diff options
Diffstat (limited to 'Source/web/WebPluginScrollbarImpl.cpp')
-rw-r--r-- | Source/web/WebPluginScrollbarImpl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/web/WebPluginScrollbarImpl.cpp b/Source/web/WebPluginScrollbarImpl.cpp index 0085db491..514755d2f 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()); } |