Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Unified Diff: Source/WebCore/platform/ScrollView.cpp

Issue 12279017: Revert 140571 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm ('k') | Source/WebCore/platform/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698