Index: Source/platform/scroll/ScrollView.h |
diff --git a/Source/platform/scroll/ScrollView.h b/Source/platform/scroll/ScrollView.h |
index f19d07759c13e6140bacf5450cd8ff7be4dddff5..9f6fd25456d4928c1fac3feb3dfbe0e36ebb891d 100644 |
--- a/Source/platform/scroll/ScrollView.h |
+++ b/Source/platform/scroll/ScrollView.h |
@@ -159,8 +159,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); |