gecko-dev/accessible/base
James Teh 590d7137ee Bug 1668707: When deciding whether to create a div Accessible, skip the first/last child if it's invisible and consider inline-block, etc. r=MarcoZ
1. Text nodes can be created in the DOM just because there was white space in the source, but this isn't always visible.
    We shouldn't create an Accessible in the invisible case.
    However, there could be an inline frame after/before an invisible text node, so we still need to check for that.

2. We should create div Accessibles if there are inline-block children such as buttons.
    Previously, we weren't doing this because these aren't caught by IsInlineFrame.
    We now use IsInlineOutside, which also catches text and br.
    Aside from being a bug, this fix was needed in this patch to fix tests which previously created div Accessibles because of invisible text nodes, but lost the Accessibles once this was fixed.

3. Similarly, we should create div Accessibles if there is a previous text sibling.
    Again, IsInlineFrame wasn't catching these, but IsInlineOutside does.

4. Adjust various tests to fix assumptions based on the previous behaviour.
    Some needed role="none" to force flattening, while some needed an id to force creation.

Differential Revision: https://phabricator.services.mozilla.com/D92170
2020-10-02 07:15:15 +00:00
..
ARIAMap.cpp
ARIAMap.h
ARIAStateMap.cpp
ARIAStateMap.h
AccEvent.cpp
AccEvent.h
AccGroupInfo.cpp
AccGroupInfo.h
AccIterator.cpp
AccIterator.h
AccTypes.h
AccessibleOrProxy.cpp
AccessibleOrProxy.h Bug 1662147: Add AXControlSearchKey to rotor r=eeejay 2020-09-15 16:42:34 +00:00
Asserts.cpp
DocManager.cpp
DocManager.h
EmbeddedObjCollector.cpp
EmbeddedObjCollector.h
EventQueue.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
EventQueue.h
EventTree.cpp
EventTree.h
Filters.cpp
Filters.h
FocusManager.cpp Bug 1660359 part 2: Allow a11y focus on a remote print preview OuterDocAccessible. r=jwatt,yzen 2020-08-27 06:12:25 +00:00
FocusManager.h
IDSet.h
Logging.cpp
Logging.h
MarkupMap.h Bug 1668707: When deciding whether to create a div Accessible, skip the first/last child if it's invisible and consider inline-block, etc. r=MarcoZ 2020-10-02 07:15:15 +00:00
NotificationController.cpp Bug 1666617 - Add an observer description argument to AddRefreshObserver. r=smaug 2020-09-25 02:36:29 +00:00
NotificationController.h Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
Pivot.cpp Bug 1662262: Move and modify mac pivot rules for better granularity r=eeejay 2020-09-01 22:12:55 +00:00
Pivot.h Bug 1662262: Move and modify mac pivot rules for better granularity r=eeejay 2020-09-01 22:12:55 +00:00
Platform.h
Relation.h
RelationType.h
RelationTypeMap.h
Role.h Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie 2020-09-29 22:31:58 +00:00
RoleMap.h Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie 2020-09-29 22:31:58 +00:00
SelectionManager.cpp Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio 2020-07-15 13:44:39 +00:00
SelectionManager.h Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio 2020-07-15 13:44:39 +00:00
States.h
Statistics.h
StyleInfo.cpp
StyleInfo.h
TextAttrs.cpp Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie 2020-09-29 22:31:58 +00:00
TextAttrs.h
TextRange-inl.h
TextRange.cpp Bug 1661765 - Part 1: Move selection and scroll functions to TextRange. r=Jamie 2020-09-21 22:52:01 +00:00
TextRange.h Bug 1661765 - Part 1: Move selection and scroll functions to TextRange. r=Jamie 2020-09-21 22:52:01 +00:00
TextUpdater.cpp
TextUpdater.h
TreeWalker.cpp
TreeWalker.h
XULMap.h Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie 2020-07-16 17:51:22 +00:00
moz.build Bug 1652254 - Remove svg from some moz.build local includes r=dholbert 2020-07-12 16:38:26 +00:00
nsAccCache.h
nsAccUtils.cpp
nsAccUtils.h
nsAccessibilityService.cpp Bug 1668707: When deciding whether to create a div Accessible, skip the first/last child if it's invisible and consider inline-block, etc. r=MarcoZ 2020-10-02 07:15:15 +00:00
nsAccessibilityService.h
nsAccessiblePivot.cpp Bug 1652809: Convert Pivot framework to use AccessibleOrProxy objects r=eeejay 2020-07-28 22:35:24 +00:00
nsAccessiblePivot.h
nsCoreUtils.cpp
nsCoreUtils.h Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsEventShell.cpp
nsEventShell.h
nsTextEquivUtils.cpp Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ 2020-07-13 01:32:33 +00:00
nsTextEquivUtils.h Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ 2020-07-13 01:32:33 +00:00