gecko-dev/accessible
James Teh 297b3d04a4 Bug 1864511: When hit testing a RemoteAccessible image, image map or inline element without children, just use the rect instead of walking children. r=morgan
An image or image map can't contain text, so it doesn't make sense to walk the lines of any children.
Previously, for normal images (not image maps), we would find no children and thus return false because there were no children containing the point, thus breaking hit testing for images.
For image maps, hit testing would fail for any points that weren't covered by areas.
Now, we don't walk children in these cases, instead just using the element's rect.
We apply this same rule for other inline elements without children, since there are no children to walk in that case and we should use the rect there rather than always returning false.
I don't know if this last case is something that ever happens in practice, but I figured it was best to handle it just in case.

Differential Revision: https://phabricator.services.mozilla.com/D193509
2023-11-17 06:37:27 +00:00
..
android Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
aom Bug 1840732 Part 5: Remove unnecessary includes from accessible/aom, r=Jamie 2023-07-07 03:22:08 +00:00
atk Bug 1852721 - Null-check parent before emitting signal. r=Jamie 2023-10-31 10:07:14 +00:00
base Bug 1863482 part 2: Generate RelationType.h from nsIAccessibleRelation.idl. r=eeejay 2023-11-14 02:31:54 +00:00
basetypes Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
docs Bug 1855310: Add HCM Settings documentation r=eeejay 2023-09-27 18:56:31 +00:00
generic Bug 1863466: Support details and error message relations for RemoteAccessible. r=morgan 2023-11-08 00:00:40 +00:00
html Bug 1851441: Speculative fix for image map/html area element crash r=Jamie 2023-11-15 22:37:29 +00:00
interfaces Bug 1852190 part 2: Reintroduce the IAccessible2 typelib. r=nlapre 2023-10-04 23:58:45 +00:00
ipc Bug 1864511: When hit testing a RemoteAccessible image, image map or inline element without children, just use the rect instead of walking children. r=morgan 2023-11-17 06:37:27 +00:00
mac Bug 1862999 - Introduce support for AXARIAPosInSet and AXARIASetSize. r=morgan 2023-11-07 22:24:23 +00:00
other Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
tests Bug 1864511: When hit testing a RemoteAccessible image, image map or inline element without children, just use the rect instead of walking children. r=morgan 2023-11-17 06:37:27 +00:00
windows Bug 1863482 part 1: Change includes of RelationType.h to mozilla/a11y/RelationType.h. r=eeejay 2023-11-14 02:31:54 +00:00
xpcom Bug 1863480: Expose all relations via xpcAccessible::GetRelations. r=morgan,devtools-reviewers,nchevobbe 2023-11-09 05:19:01 +00:00
xul Bug 1848909: Add a11y support for XUL toolbarbuttons labelled by a text leaf. r=eeejay 2023-10-25 23:31:19 +00:00
moz.build Bug 1852190 part 4: Add Windows UIA interfaces, constants and utility functions to the Python environment. r=eeejay 2023-10-04 23:58:46 +00:00