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

Unified Diff: Source/platform/mac/ScrollAnimatorMac.mm

Issue 1170223002: Revert of Removed unused ScrollAnimatorMac methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/platform/mac/ScrollAnimatorMac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ScrollAnimatorMac.mm
diff --git a/Source/platform/mac/ScrollAnimatorMac.mm b/Source/platform/mac/ScrollAnimatorMac.mm
index 8e4577287c9281addc5e034d9e6a201faaf0d465..6ab30748bb030c8766b1660684868531208ea12e 100644
--- a/Source/platform/mac/ScrollAnimatorMac.mm
+++ b/Source/platform/mac/ScrollAnimatorMac.mm
@@ -129,6 +129,13 @@
return NSMakeRect(currentPosition.x(), currentPosition.y(), 0, 0);
}
+- (void)_immediateScrollToPoint:(NSPoint)newPosition
+{
+ if (!_animator)
+ return;
+ _animator->immediateScrollToPointForScrollAnimation(newPosition);
+}
+
- (NSPoint)_pixelAlignProposedScrollPosition:(NSPoint)newOrigin
{
return newOrigin;
@@ -762,6 +769,12 @@
notifyPositionChanged();
}
+void ScrollAnimatorMac::immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition)
+{
+ ASSERT(m_scrollAnimationHelper);
+ immediateScrollTo(newPosition);
+}
+
void ScrollAnimatorMac::contentAreaWillPaint() const
{
if (!scrollableArea()->scrollbarsCanBeActive())
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698