Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uia] ScrollIntoView causing scroll even when element is onscreen.
This CL fixes a bug where calling ScrollIntoView on a fully onscreen text range will cause it to move and align to the top of the view. So we simply added a check so that if both of the text range's anchors are onscreen, we return early. Documentation: https://learn.microsoft.com/en-us/windows/win32/api/uiautomationcore/nf-uiautomationcore-itextrangeprovider-scrollintoview This CL also fixes a small bug in TestAXNodeWrapper::GetNodeFromID that caused the function to only build wrappers for the passed in node's children, rather than for all the nodes in the tree. Change-Id: I9e3af9a22e968a1baf89e35e0b966deb48c7f557 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4347658 Reviewed-by: Benjamin Beaudry <benjamin.beaudry@microsoft.com> Commit-Queue: Benjamin Beaudry <benjamin.beaudry@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1118957}
- Loading branch information
Javier Contreras Tenorio
authored and
Chromium LUCI CQ
committed
Mar 18, 2023
1 parent
4e20313
commit e4c9bb3
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters