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

Unified Diff: Source/platform/scroll/ScrollView.h

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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/platform/scroll/ScrollView.h
diff --git a/Source/platform/scroll/ScrollView.h b/Source/platform/scroll/ScrollView.h
index f4f3dbd5453e767756ce5f85e664676e93966c7f..730bb4218d7f8e54040129eccc1452ef8d854418 100644
--- a/Source/platform/scroll/ScrollView.h
+++ b/Source/platform/scroll/ScrollView.h
@@ -160,8 +160,11 @@ public:
IntPoint cachedScrollPosition() const { return m_cachedScrollPosition; }
// Functions for scrolling the view.
- virtual void setScrollPosition(const IntPoint&);
- void scrollBy(const IntSize& s) { return setScrollPosition(scrollPosition() + s); }
+ virtual void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehaviorInstant);
+ void scrollBy(const IntSize& s, ScrollBehavior behavior = ScrollBehaviorInstant)
+ {
+ return setScrollPosition(scrollPosition() + s, behavior);
+ }
bool scroll(ScrollDirection, ScrollGranularity);

Powered by Google App Engine
This is Rietveld 408576698