Index: Source/WebCore/platform/ScrollView.cpp |
=================================================================== |
--- Source/WebCore/platform/ScrollView.cpp (revision 143052) |
+++ Source/WebCore/platform/ScrollView.cpp (working copy) |
@@ -616,9 +616,12 @@ |
} |
IntPoint adjustedScrollPosition = IntPoint(desiredOffset); |
- if (!isRubberBandInProgress()) |
- adjustedScrollPosition = adjustScrollPositionWithinRange(adjustedScrollPosition); |
+ if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) { |
+ if (!scrollAnimator->isRubberBandInProgress()) |
+ adjustedScrollPosition = adjustScrollPositionWithinRange(adjustedScrollPosition); |
+ } |
+ |
if (adjustedScrollPosition != scrollPosition() || scrollOriginChanged()) { |
ScrollableArea::scrollToOffsetWithoutAnimation(adjustedScrollPosition + IntSize(scrollOrigin().x(), scrollOrigin().y())); |
resetScrollOriginChanged(); |