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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: add test + rebase 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/Scrollbar.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
index 8f9fd16502a679e68efd27872abd9dcfbd0d4ae7..04a52cdc1cfd6dd2ceccd76f79ad5d0f15af2cf5 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
@@ -252,8 +252,7 @@ void Scrollbar::moveThumb(int pos, bool draggingDocument) {
if (m_draggingDocument)
delta = pos - m_documentDragPos;
m_draggingDocument = true;
- ScrollOffset currentPosition =
- m_scrollableArea->scrollAnimator().currentOffset();
+ ScrollOffset currentPosition = m_scrollableArea->scrollOffset();
float destinationPosition =
(m_orientation == HorizontalScrollbar ? currentPosition.width()
: currentPosition.height()) +
@@ -599,11 +598,11 @@ float Scrollbar::scrollableAreaTargetPos() const {
return 0;
if (m_orientation == HorizontalScrollbar) {
- return m_scrollableArea->scrollAnimator().desiredTargetOffset().width() -
+ return m_scrollableArea->scrollAnimatorDesiredTargetOffset().width() -
m_scrollableArea->minimumScrollOffset().width();
}
- return m_scrollableArea->scrollAnimator().desiredTargetOffset().height() -
+ return m_scrollableArea->scrollAnimatorDesiredTargetOffset().height() -
m_scrollableArea->minimumScrollOffset().height();
}

Powered by Google App Engine
This is Rietveld 408576698