commit | a601d84dbc06d91ac949680ba95a76547ab66ab0 | [log] [tgz] |
---|---|---|
author | Alison Maher <almaher@microsoft.com> | Tue May 21 05:45:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 21 05:45:34 2019 |
tree | 55059fb9e023855262a7acfbfd0640ef72157bb3 | |
parent | 3d2e68f8c976248a53f0d6e381b1f3f47b132c5c [diff] |
Update Move to match the spec As per the spec, "If the text range cannot be moved as far as the requested number of text units, but can be moved by a smaller number of text units, the text range should be moved by the smaller number of text units and pRetVal should be set to the number of text units moved successfully." (https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationcore/nf-uiautomationcore-itextrangeprovider-move) Currently, regarding the case discussed above, ITextRangeProvider::Move will not move the range forward, even if it can move a smaller number of units. This change updates this logic to more closely match the spec. This change relies on the following two changes as they affect the behavior of ITextRangeProvider::MoveEndpointByUnit() at the beginning and end of a document for various text unit types. https://chromium-review.googlesource.com/c/chromium/src/+/1604407 https://chromium-review.googlesource.com/c/chromium/src/+/1612255/2 Bug: 961867 Change-Id: I712ec3206346639fd32a8d64fb620412ce10c4d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1612406 Commit-Queue: Alison Maher <almaher@microsoft.com> Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com> Cr-Commit-Position: refs/heads/master@{#661625}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .