Bug 1597742 a11y: Make ScrollSubstringToPoint always scroll, not only when invisible r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D60164

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Colomban Wendling 2020-01-17 02:10:31 +00:00
parent b225185523
commit 6ec7f65366

View File

@ -1671,7 +1671,8 @@ void HyperTextAccessible::ScrollSubstringToPoint(int32_t aStartOffset,
int16_t vPercent = offsetPointY * 100 / size.height;
nsresult rv = nsCoreUtils::ScrollSubstringTo(
frame, range, ScrollAxis(vPercent), ScrollAxis(hPercent));
frame, range, ScrollAxis(vPercent, WhenToScroll::Always),
ScrollAxis(hPercent, WhenToScroll::Always));
if (NS_FAILED(rv)) return;
initialScrolled = true;