gecko-dev/accessible/generic
James Teh 154b408813 Bug 1905021: Don't incorrectly treat the start of a node inside a contentEditable as the end of a line. r=nlapre
Previously, we assumed that CaretAssociationHint::Before always meant the caret was at the insertion point at the end of a line.
However, it can also mean that the caret is before the start of a node in the middle of a line.
To fix this, we need to check for line and paragraph boundaries.
See the code comments for details.

I moved this functionality completely out of HyperTextAccessible and into TextLeafPoint.
First, it was easiest to do these checks with private functions already available to TextLeafPoint.
Second, this ideally belongs in TextLeafPoint anyway; its existence in HyperTextAccessible was vestigial.

Differential Revision: https://phabricator.services.mozilla.com/D215089
2024-07-01 06:24:13 +00:00
..
ApplicationAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
ApplicationAccessible.h
ARIAGridAccessible.cpp Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
ARIAGridAccessible.h Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
BaseAccessibles.cpp Bug 1882909: Remove unnecessary uses of const_cast from accessibility module, r=morgan 2024-03-04 18:46:01 +00:00
BaseAccessibles.h Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
DocAccessible-inl.h Bug 1896516 Part 8 - Remove nsIScrollableFrame usages under accessible/. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
DocAccessible.cpp Bug 1896516 Part 7 - Remove PresShell::GetRootScrollFrameAsScrollable(). r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
DocAccessible.h Bug 1879255 part 3: Notify accessibility about changes to explicitly set attr-elements. r=smaug,eeejay 2024-02-21 00:05:21 +00:00
FormControlAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
FormControlAccessible.h
HyperTextAccessible-inl.h Bug 1905021: Don't incorrectly treat the start of a node inside a contentEditable as the end of a line. r=nlapre 2024-07-01 06:24:13 +00:00
HyperTextAccessible.cpp Bug 1896516 Part 8 - Remove nsIScrollableFrame usages under accessible/. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
HyperTextAccessible.h Bug 1905021: Don't incorrectly treat the start of a node inside a contentEditable as the end of a line. r=nlapre 2024-07-01 06:24:13 +00:00
ImageAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
ImageAccessible.h
LocalAccessible-inl.h Bug 1870783 part 1: Expose a minimum role of GROUPING for popovers. r=eeejay 2024-02-12 06:24:14 +00:00
LocalAccessible.cpp Bug 1813976: Support RemoteAccessible::Language on non-HyperText Accessibles. r=morgan 2024-06-05 23:51:11 +00:00
LocalAccessible.h Bug 1887788 part 1: Add Accessible::DOMNodeClass to get the DOM class without all the other work in Accessible::Attributes. r=nlapre 2024-04-17 03:32:16 +00:00
moz.build Bug 1851273 - P1: Add accessible/ios directory. r=Jamie,morgan,nlapre 2024-03-04 21:11:49 +00:00
OuterDocAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
OuterDocAccessible.h
RootAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
RootAccessible.h
TextLeafAccessible.cpp Bug 1844238 part 1: Change includes of Role.h to mozilla/a11y/Role.h. r=eeejay 2023-07-26 02:19:41 +00:00
TextLeafAccessible.h