summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/ScrollableArea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/ScrollableArea.cpp')
-rw-r--r--Source/WebCore/platform/ScrollableArea.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/platform/ScrollableArea.cpp b/Source/WebCore/platform/ScrollableArea.cpp
index 3506e5592..103e03899 100644
--- a/Source/WebCore/platform/ScrollableArea.cpp
+++ b/Source/WebCore/platform/ScrollableArea.cpp
@@ -142,6 +142,7 @@ void ScrollableArea::notifyScrollPositionChanged(const IntPoint& position)
void ScrollableArea::scrollPositionChanged(const IntPoint& position)
{
+ IntPoint oldPosition = scrollPosition();
// Tell the derived class to scroll its contents.
setScrollOffset(position);
@@ -168,7 +169,8 @@ void ScrollableArea::scrollPositionChanged(const IntPoint& position)
verticalScrollbar->invalidate();
}
- scrollAnimator()->notifyContentAreaScrolled();
+ if (scrollPosition() != oldPosition)
+ scrollAnimator()->notifyContentAreaScrolled();
}
bool ScrollableArea::handleWheelEvent(const PlatformWheelEvent& wheelEvent)