gecko-dev/accessible/base
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
..
ARIAMap.cpp Bug 1727616 - Add meter ARIA role. r=Jamie 2021-08-26 16:17:21 +00:00
ARIAMap.h Backed out 4 changesets (bug 1722396) for causing multiple failures CLOSED TREE 2021-07-30 01:39:18 +03:00
ARIAStateMap.cpp Bug 1693607 - [Linux] Add braces around statements. r=morgan 2021-02-19 23:14:32 +00:00
ARIAStateMap.h Bug 1359482: Don't expose the editable state on ARIA grids and gridcells. r=eeejay 2021-01-15 01:32:13 +00:00
AccAttributes.cpp Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
AccAttributes.h Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
AccEvent.cpp Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan 2022-03-16 05:56:25 +00:00
AccEvent.h Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan 2022-03-16 05:56:25 +00:00
AccGroupInfo.cpp Bug 1737944 - P9: Make AccGroupInfo use Accessible. r=Jamie 2022-01-04 21:01:38 +00:00
AccGroupInfo.h Bug 1737944 - P9: Make AccGroupInfo use Accessible. r=Jamie 2022-01-04 21:01:38 +00:00
AccIterator.cpp Bug 1737944 - P9: Make AccGroupInfo use Accessible. r=Jamie 2022-01-04 21:01:38 +00:00
AccIterator.h Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
AccTypes.h Bug 1747835 - P1: Add eHTMLDateTimeFieldType AccType and IsDateTimeField checker. r=morgan 2022-01-05 22:30:52 +00:00
Asserts.cpp
CacheConstants.h Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
DocManager.cpp Bug 1757257: Don't assert for a null frame in TextAttrsMgr::GetAttributes. r=morgan 2022-03-01 21:16:43 +00:00
DocManager.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
EmbeddedObjCollector.cpp Bug 1694203 - P9: Have RemoteAccessible inherit from Accessible. r=Jamie 2021-03-02 16:32:24 +00:00
EmbeddedObjCollector.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
EventQueue.cpp Bug 1723614 - P2: Robustify name change events and use events in name tests. r=Jamie 2021-08-05 23:04:17 +00:00
EventQueue.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
EventTree.cpp Bug 1725145 - fixes for linking in the hybrid build env. r=valentin 2021-08-22 10:21:56 +00:00
EventTree.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
Filters.cpp Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
Filters.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
FocusManager.cpp Bug 1691930 - Check that FocusedChild is bound to a doc in RecvFocusedChild. r=Jamie 2021-03-24 16:24:47 +00:00
FocusManager.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
HTMLMarkupMap.h Bug 1714390 - P5: Use static aria_* atoms for aria attributes. r=Jamie 2021-06-10 23:07:07 +00:00
IDSet.h
Logging.cpp Bug 1741148 - part 4: Add `nsINode::ComputeIndexInParentNode()` and `nsINode::ComputeIndexInParentContent()` r=smaug 2021-12-09 12:03:00 +00:00
Logging.h Bug 1729061 - Introduce cache verification logging. r=Jamie 2021-09-28 21:55:41 +00:00
MathMLMarkupMap.h Bug 1703600 part 4: Move MathML elements into MathMLMarkupMap.h. r=eeejay 2021-04-14 04:11:18 +00:00
NotificationController.cpp Bug 1744573: Add infrastructure on DocAccessible to queue cache updates r=Jamie 2022-02-03 16:49:46 +00:00
NotificationController.h Bug 1613634 - Reduce calls to CoalesceMutationEvents r=Jamie,eeejay 2022-01-07 18:48:37 +00:00
Pivot.cpp Bug 1755383 - P1: Move SelectAccessible methods to Accessible. r=morgan 2022-02-16 18:42:53 +00:00
Pivot.h Bug 1755383 - P1: Move SelectAccessible methods to Accessible. r=morgan 2022-02-16 18:42:53 +00:00
Platform.h Bug 1713050 - P3: Add more granularities to AXSelectedTextChanged events. r=morgan 2022-03-16 05:56:26 +00:00
Relation.h Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
RelationType.h Bug 1710751: Create LINKS_TO relation to track anchors and their corresponding elements r=eeejay 2021-05-26 21:31:42 +00:00
RelationTypeMap.h Bug 1710751: Create LINKS_TO relation to track anchors and their corresponding elements r=eeejay 2021-05-26 21:31:42 +00:00
Role.h Bug 1460378: Introduce meter role and HTMLMeterAccessible class. r=Jamie 2021-02-17 15:58:31 +00:00
RoleMap.h Bug 1732108: Map ATK_ROLE_CONTENT_DELETION/INSERTION. r=eeejay 2021-09-24 00:05:50 +00:00
SelectionManager.cpp Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan 2022-03-16 05:56:25 +00:00
SelectionManager.h
States.h Bug 1738032 part 2: Push a11y state in the initial cache push. r=eeejay 2021-11-02 23:56:35 +00:00
Statistics.h
StyleInfo.cpp Bug 1723921 - Cleanup nsComputedDOMStyle and related APIs. r=layout-reviewers,jfkthame 2021-08-07 09:47:15 +00:00
StyleInfo.h Bug 1714390 - P4: Set non-string values in AccAttributes when possible. r=Jamie 2021-06-10 23:07:06 +00:00
TextAttrs.cpp Bug 1757257: Don't assert for a null frame in TextAttrsMgr::GetAttributes. r=morgan 2022-03-01 21:16:43 +00:00
TextAttrs.h Bug 1714390 - P2: Use AccAttributes for accessible and text attributes. r=Jamie 2021-06-10 23:07:05 +00:00
TextLeafRange.cpp Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
TextLeafRange.h Bug 1730090: Implement support for BOUNDARY_PARAGRAPH in TextLeafPoint and HyperTextAccessibleBase. r=eeejay 2022-02-18 11:41:41 +00:00
TextRange-inl.h Bug 1741793 part 2: Update TextPoint/Range to use base Accessible. r=eeejay 2022-02-26 23:01:54 +00:00
TextRange.cpp Bug 1756528: Fix cropping of siblings in TextRange::Crop. r=eeejay 2022-02-26 23:01:56 +00:00
TextRange.h Bug 1741793 part 2: Update TextPoint/Range to use base Accessible. r=eeejay 2022-02-26 23:01:54 +00:00
TextUpdater.cpp Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
TextUpdater.h
TreeWalker.cpp Bug 1731526 - Fix non-unified build errors in accessible/. r=eeejay 2021-09-22 01:41:40 +00:00
TreeWalker.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
XULMap.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
moz.build Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
nsAccCache.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
nsAccUtils.cpp Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
nsAccUtils.h Backed out 18 changesets (bug 1735970) for causing hazard bustages.CLOSED TREE 2022-03-23 10:27:08 +02:00
nsAccessibilityService.cpp Bug 1744573: Maintain a reference to old ComputedStyle struct on LocalAccessibles r=Jamie,emilio 2022-02-10 17:15:35 +00:00
nsAccessibilityService.h Bug 1744573: Maintain a reference to old ComputedStyle struct on LocalAccessibles r=Jamie,emilio 2022-02-10 17:15:35 +00:00
nsAccessiblePivot.cpp Bug 1733268: Cache states::OPAQUE1, update state on style change r=eeejay 2022-03-15 18:46:46 +00:00
nsAccessiblePivot.h Bug 1693597 - P1: Rename Accessible to LocalAccessible. r=morgan 2021-02-19 23:14:32 +00:00
nsCoreUtils.cpp Backed out changeset 6c3a672524b7 (bug 1748878) for causing accessibility crashes. a=backout 2022-01-20 17:24:17 +02:00
nsCoreUtils.h Backed out changeset 6c3a672524b7 (bug 1748878) for causing accessibility crashes. a=backout 2022-01-20 17:24:17 +02:00
nsEventShell.cpp Bug 1727373 - Add state change info in event logging. r=morgan 2021-08-24 23:49:59 +00:00
nsEventShell.h Bug 1714390 - P2: Use AccAttributes for accessible and text attributes. r=Jamie 2021-06-10 23:07:05 +00:00
nsTextEquivUtils.cpp Bug 1550644: nsTextEquivUtils: Add space for block elements when we encounter them. r=eeejay,adw 2022-03-24 00:06:15 +00:00
nsTextEquivUtils.h Bug 1746833 - P3: Make GetTextEquivFromSubtree take Accessible. r=Jamie 2022-02-18 18:21:00 +00:00