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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 2838513003: ScrollAnimatorMac should post contentAreaScrolled only for explicit scrolls. (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 78c7c188da7736fb341fccebb4d7e734579d02cd..4f7516dc7b2bc8c04d289a5f01b85a75be6e493b 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -283,9 +283,10 @@ void ScrollableArea::ScrollOffsetChanged(const ScrollOffset& offset,
if (Scrollbar* vertical_scrollbar = this->VerticalScrollbar())
vertical_scrollbar->OffsetDidChange();
- if (GetScrollOffset() != old_offset)
- GetScrollAnimator().NotifyContentAreaScrolled(GetScrollOffset() -
- old_offset);
+ if (GetScrollOffset() != old_offset) {
+ GetScrollAnimator().NotifyContentAreaScrolled(
+ GetScrollOffset() - old_offset, scroll_type);
+ }
GetScrollAnimator().SetCurrentOffset(offset);
}
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698