gecko-dev/accessible
James Teh 57869687c5 Bug 1820069: Fix handling of magic offsets in HyperTextAccessible*::Char/TextBounds. r=morgan
1. HyperTextAccessibleBase::CharBounds didn't have code to support magic offsets (like TEXT_OFFSET_CARET) at all, resulting in a crash.
2. HyperTextAccessibleBase::TextBounds handled the end offset being a magic offset, but not the start offset.
3. HyperTextAccessible::CharBounds assumed it could just add 1 to the start offset to pass to TextBounds, which resulted in returning the rect from the caret to the end of the container, since length (-1) is caret (-2) + 1.

This patch addresses all three of these issues.

Differential Revision: https://phabricator.services.mozilla.com/D171545
2023-03-06 08:58:42 +00:00
..
android
aom
atk
base Bug 1808565, part 1: Adapt Selection to support StaticRanges. r=webidl,saschanaz,masayuki,smaug 2023-03-03 14:59:47 +00:00
basetypes Bug 1820069: Fix handling of magic offsets in HyperTextAccessible*::Char/TextBounds. r=morgan 2023-03-06 08:58:42 +00:00
docs
generic Bug 1820069: Fix handling of magic offsets in HyperTextAccessible*::Char/TextBounds. r=morgan 2023-03-06 08:58:42 +00:00
html Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
interfaces Bug 1814220 - Allow ignoring list item markers in TextLeafPoint::FindBoundary. r=Jamie 2023-02-22 04:17:31 +00:00
ipc Bug 1819802 part 1: When getting cached a11y character bounds, return a single rect rather than an array of rects. r=morgan 2023-03-03 03:26:21 +00:00
mac Bug 1820213 - Use initial attributes run of first segment after an input. r=morgan 2023-03-04 06:57:39 +00:00
other
tests Bug 1820069: Fix handling of magic offsets in HyperTextAccessible*::Char/TextBounds. r=morgan 2023-03-06 08:58:42 +00:00
windows Bug 1818176: Support querying to IAccessibleImage. r=nlapre 2023-02-23 23:42:23 +00:00
xpcom Bug 1816573 - Use flags in TextLeafPoint::FindBoundary instead of boolean arguments. r=Jamie 2023-02-21 16:37:23 +00:00
xul Bug 755621 - Add downcasting for nsXULTreeItemAccessibleBase. r=nlapre 2023-02-20 06:37:16 +00:00
moz.build Bug 1815774 - Introduce TextLeafPoint XPCOM bindings and tests. r=Jamie 2023-02-13 17:56:12 +00:00