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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h

Issue 2383113003: Refactor ScrollableArea::setScrollPosition. (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
index 5d86d7c40947f0b3f48f5b95c9e49e2c53cdf1e1..9d89dacea5121b07a6e7b140d183639e8eb337b6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
@@ -46,9 +46,9 @@ class MockScrollableArea : public GarbageCollectedFinalized<MockScrollableArea>,
bool userInputScrollable(ScrollbarOrientation) const override { return true; }
bool scrollbarsCanBeActive() const override { return true; }
bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; }
- void setScrollOffset(const DoublePoint& offset, ScrollType) override {
+ void updateScrollPosition(const DoublePoint& position, ScrollType) override {
m_scrollPosition =
- flooredIntPoint(offset).shrunkTo(m_maximumScrollPosition);
+ flooredIntPoint(position).shrunkTo(m_maximumScrollPosition);
}
IntPoint scrollPosition() const override { return m_scrollPosition; }
IntPoint minimumScrollPosition() const override { return IntPoint(); }

Powered by Google App Engine
This is Rietveld 408576698