gecko-dev/accessible
James Teh cc758fd688 Bug 1550644: nsTextEquivUtils: Add space for block elements when we encounter them. r=eeejay,adw
Previously, when we were about to add text from a text node, we looked at the parent to determine if it was a block element and added space based on that.
This caused problems if there were multiple text nodes inside a block because we ended up adding space between those text nodes, even if there was no intervening block.
Instead, since we're walking the tree, we now add space whenever we encounter a block, both before and after its descendants.
If there are multiple adjacent blocks, this does mean we append multiple spaces, but we compress space befor returning to the caller anyway.
This fixes highlights in address bar suggestions being separated from the rest of the suggestion.

Differential Revision: https://phabricator.services.mozilla.com/D141722
2022-03-24 00:06:15 +00:00
..
android Bug 1713050 - P3: Add more granularities to AXSelectedTextChanged events. r=morgan 2022-03-16 05:56:26 +00:00
aom Bug 1714390 - P2: Use AccAttributes for accessible and text attributes. r=Jamie 2021-06-10 23:07:05 +00:00
atk Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
base Bug 1550644: nsTextEquivUtils: Add space for block elements when we encounter them. r=eeejay,adw 2022-03-24 00:06:15 +00:00
basetypes Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
docs Bug 1757257: Don't assert for a null frame in TextAttrsMgr::GetAttributes. r=morgan 2022-03-01 21:16:43 +00:00
generic Bug 1760880 - Push document resolution in initial cache. r=morgan 2022-03-23 22:24:52 +00:00
html Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
interfaces Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan 2022-03-16 05:56:25 +00:00
ipc Bug 1760880 - Push document resolution in initial cache. r=morgan 2022-03-23 22:24:52 +00:00
mac Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
other Bug 1713050 - P3: Add more granularities to AXSelectedTextChanged events. r=morgan 2022-03-16 05:56:26 +00:00
tests Bug 1550644: nsTextEquivUtils: Add space for block elements when we encounter them. r=eeejay,adw 2022-03-24 00:06:15 +00:00
windows Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
xpcom Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
xul Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
moz.build Bug 1755383 - P3: Migrate HTML selection tests from mochitests to browser tests. r=morgan 2022-02-16 18:42:54 +00:00