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

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: Build fix 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
« no previous file with comments | « Source/modules/accessibility/AXObject.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXScrollbar.cpp
diff --git a/Source/modules/accessibility/AXScrollbar.cpp b/Source/modules/accessibility/AXScrollbar.cpp
index ded75fc27840200183b2ea38bae07b964983195d..778ff9498de785866c63d6d16fe75c528fbd55c7 100644
--- a/Source/modules/accessibility/AXScrollbar.cpp
+++ b/Source/modules/accessibility/AXScrollbar.cpp
@@ -106,7 +106,9 @@ void AXScrollbar::setValue(float value)
return;
float newValue = value * m_scrollbar->maximum();
- m_scrollbar->scrollableArea()->scrollToOffsetWithoutAnimation(m_scrollbar->orientation(), newValue);
+
+ // TODO(bokan): This should potentially be a UserScroll.
+ m_scrollbar->scrollableArea()->setScrollPositionSingleAxis(m_scrollbar->orientation(), newValue, ProgrammaticScroll);
}
} // namespace blink
« no previous file with comments | « Source/modules/accessibility/AXObject.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698