Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make AXCoreObject::visibleChildren, AXCoreObject::isPresentationalChi…
…ldOfAriaRole, and AXCoreObject::ariaRoleHasPresentationalChildren work for display:contents elements https://bugs.webkit.org/show_bug.cgi?id=255371 rdar://problem/107962942 Reviewed by Chris Fleizach and Andres Gonzalez. None of these methods inherently require a renderer, but are still only implemented for AccessibilityRenderObject, meaning they won't work for display:contents elements. This patch fixes this by moving the implementations to the appropriate base class for each method. Other significant changes worth mentioning: 1. `visibleChildren` for ARIA listboxes had a bug where it selected children that were `isOffScreen` rather than `!isOffScreen`. 2. NSAccessibilityVisibleChildrenAttribute was removed as a supported attribute for menus and menu bars since we always return nil for this combination of role and attribute. * LayoutTests/accessibility/presentational-children-expected.txt: * LayoutTests/accessibility/presentational-children.html: * Source/WebCore/accessibility/AccessibilityListBox.cpp: (WebCore::AccessibilityListBox::visibleChildren): * Source/WebCore/accessibility/AccessibilityListBox.h: * Source/WebCore/accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::visibleChildren): * Source/WebCore/accessibility/AccessibilityNodeObject.h: * Source/WebCore/accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::ariaRoleHasPresentationalChildren const): (WebCore::AccessibilityObject::isPresentationalChildOfAriaRole const): * Source/WebCore/accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::isPresentationalChildOfAriaRole const): Deleted. (WebCore::AccessibilityObject::ariaRoleHasPresentationalChildren const): Deleted. * Source/WebCore/accessibility/AccessibilityObjectInterface.h: * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::isPresentationalChildOfAriaRole const): Deleted. (WebCore::AccessibilityRenderObject::ariaRoleHasPresentationalChildren const): Deleted. (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren): Deleted. (WebCore::AccessibilityRenderObject::visibleChildren): Deleted. * Source/WebCore/accessibility/AccessibilityRenderObject.h: * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::initializeProperties): * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h: * Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Canonical link: https://commits.webkit.org/263025@main
- Loading branch information
Showing
14 changed files
with
64 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters