Keep buildbot happy.
[WebKit-https.git] / WebCore / platform / mac / PlatformScrollBarMac.mm
index 5b2a1701f3ea77123ff8c16bb3f9a4fe337a8c74..7f1d513cddf406f3f6e19c9858ecee8febee7b03 100644 (file)
@@ -152,7 +152,7 @@ bool PlatformScrollbar::scrollbarHit(NSScrollerPart hitPart)
         return false; // Impossible to scroll anywhere.
     
     WebCoreScrollBar *bar = (WebCoreScrollBar *)getView();
-    int newPos = m_currentPos;
+    int newPos = value();
     switch (hitPart) {
         case NSScrollerDecrementLine:
             newPos -= m_lineStep;