Nathan LaPre 82e1685960 Bug 1901463: Implement UIA ITextProvider::RangeFromPoint, r=Jamie
This revision implements RangeFromPoint by hittesting the screen location with
ChildAtPoint. Though the UIA documentation suggests that it may be correct to
find the closest text leaf to the screen coordinate, this revision restricts the
search to nodes under the screen coordinate directly. To accomplish this, it
creates two new functions: TextLeafPointAtScreenPoint, which manages the logic for
hit testing within a TextLeafRange, and FromAccessible, which creates a
TextLeafRange spanning the entire text leaf. Finally, this revision adds Windows
platform tests for the new functionality.

Differential Revision: https://phabricator.services.mozilla.com/D221902
2024-09-17 21:38:26 +00:00
..