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); |