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

Unified Diff: Source/modules/accessibility/AXScrollbar.cpp

Issue 1158673006: Replace various ScrollableArea scroll methods with setScrollPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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/modules/accessibility/AXScrollbar.cpp
diff --git a/Source/modules/accessibility/AXScrollbar.cpp b/Source/modules/accessibility/AXScrollbar.cpp
index ded75fc27840200183b2ea38bae07b964983195d..32112335b3ddd5a78b2ef390a0ffda2a073dcc4b 100644
--- a/Source/modules/accessibility/AXScrollbar.cpp
+++ b/Source/modules/accessibility/AXScrollbar.cpp
@@ -106,7 +106,7 @@ void AXScrollbar::setValue(float value)
return;
float newValue = value * m_scrollbar->maximum();
- m_scrollbar->scrollableArea()->scrollToOffsetWithoutAnimation(m_scrollbar->orientation(), newValue);
+ m_scrollbar->scrollableArea()->setScrollPositionSingleAxis(m_scrollbar->orientation(), newValue, ProgrammaticScroll);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698