[webkit-changes] [WebKit/WebKit] 0b6186: AX: isSelected AX APIs don't work for some types o...
Tyler Wilcock
noreply at github.com
Mon Apr 17 00:03:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0b61863f7ec76afa5d9f201579507012fe16de4a
https://github.com/WebKit/WebKit/commit/0b61863f7ec76afa5d9f201579507012fe16de4a
Author: Tyler Wilcock <tyler_w at apple.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M LayoutTests/accessibility/aria-selected.html
M LayoutTests/platform/glib/accessibility/aria-selected-expected.txt
M LayoutTests/platform/mac/accessibility/aria-selected-expected.txt
M LayoutTests/platform/wincairo/accessibility/aria-selected-expected.txt
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/accessibility/AccessibilityObject.h
M Source/WebCore/accessibility/AccessibilityRenderObject.cpp
M Source/WebCore/accessibility/AccessibilityRenderObject.h
Log Message:
-----------
AX: isSelected AX APIs don't work for some types of display:contents elements
https://bugs.webkit.org/show_bug.cgi?id=255480
rdar://problem/108083208
Reviewed by Chris Fleizach.
This happens because `isSelected` is implemented for AccessibilityRenderObject and not AccessibilityNodeObject
despite the fact that the implementation does not actually require a renderer.
This patch moves the implementation to AccessibilityObject since all the required components of this logic are
available on AXCoreObject. This patch also fixes AXCoreObject::textLength for display:contents elements.
* LayoutTests/accessibility/aria-selected.html:
Add a display:contents testcase.
* LayoutTests/platform/glib/accessibility/aria-selected-expected.txt:
* LayoutTests/platform/mac/accessibility/aria-selected-expected.txt:
* LayoutTests/platform/wincairo/accessibility/aria-selected-expected.txt:
* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::isSelected const):
(WebCore::AccessibilityObject::isTabItemSelected const):
(WebCore::AccessibilityObject::textLength const):
* Source/WebCore/accessibility/AccessibilityObject.h:
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::textLength const): Deleted.
(WebCore::AccessibilityRenderObject::isSelected const): Deleted.
(WebCore::AccessibilityRenderObject::isTabItemSelected const): Deleted.
* Source/WebCore/accessibility/AccessibilityRenderObject.h:
Canonical link: https://commits.webkit.org/263014@main
More information about the webkit-changes
mailing list