Fix: AXRange::GetScreenRects to ignore offscreen rects
Fix for AXRange::GetScreenRects to not return bounding boxes for ranges that are offscreen. Previously, we assumed ranges that are offscreen will have empty bounding rects, this is incorrect because offscreen rects has its width/height clipped to 1 rather than 0; so bounding box is not empty. See doc: https://cs.chromium.org/chromium/src/docs/accessibility/offscreen.md Instead, GetScreenRects now looks at the offscreen status from the bounds API to ignore offscreen ranges. This fix is one of a series of fixes need for bug:964078. Bug: 964078 Change-Id: Ibfb4d245845b7e18d59724b8c7fd09f9cc3de793 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824061 Commit-Queue: Nektarios Paisios <nektar@chromium.org> Reviewed-by:Nektarios Paisios <nektar@chromium.org> Reviewed-by:
Kurt Catti-Schmidt <kschmi@microsoft.com> Cr-Commit-Position: refs/heads/master@{#702893}
Showing
Please register or sign in to comment