mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00

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