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

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

Issue 879163002: Hook up window.scrollTo and friends. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sa
Patch Set: rebase Created 5 years, 11 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/platform/scroll/ScrollableArea.cpp
diff --git a/Source/platform/scroll/ScrollableArea.cpp b/Source/platform/scroll/ScrollableArea.cpp
index 367f42821331120cd81245fa9289770ebf7286a2..5aea749d456b565856dbdc8d7a6a5161eb5b0949 100644
--- a/Source/platform/scroll/ScrollableArea.cpp
+++ b/Source/platform/scroll/ScrollableArea.cpp
@@ -159,6 +159,12 @@ bool ScrollableArea::scroll(ScrollDirection direction, ScrollGranularity granula
return scrollAnimator()->scroll(orientation, granularity, step, delta);
}
+void ScrollableArea::setScrollPosition(const DoublePoint& position, ScrollBehavior behavior)
+{
+ // FIXME(417782): This should be unified with RenderLayerScrollableArea::scrollToOffset.
+ ASSERT_NOT_REACHED();
+}
+
void ScrollableArea::scrollToOffsetWithoutAnimation(const FloatPoint& offset, bool cancelProgrammaticAnimations)
{
if (cancelProgrammaticAnimations)
« Source/core/frame/PinchViewport.cpp ('K') | « Source/platform/scroll/ScrollableArea.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698