Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
AX: WebKit computes the wrong accessibility clickpoint for display:co…
…ntents links and headings https://bugs.webkit.org/show_bug.cgi?id=255828 rdar://problem/108409898 Reviewed by Chris Fleizach. AccessibilityRenderObject had special logic for computing click points for headings and links and there is no reason this logic is specific to an AX object with a renderer. To fix this, these implementations were moved to AccessibilityObject. Other functions called from these click point methods were moved, too. * LayoutTests/accessibility/mac/heading-clickpoint-expected.txt: * LayoutTests/accessibility/mac/heading-clickpoint.html: Add display:contents testcase. * Source/WebCore/accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::selection const): (WebCore::boundsForRects): (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange const): (WebCore::AccessibilityObject::boundsForRange const): (WebCore::AccessibilityObject::linkClickPoint): (WebCore::AccessibilityObject::clickPoint): (WebCore::AccessibilityObject::clickPointFromElementRect const): * Source/WebCore/accessibility/AccessibilityObject.h: * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::linkClickPoint): Deleted. (WebCore::AccessibilityRenderObject::clickPoint): Deleted. (WebCore::AccessibilityRenderObject::selection const): Deleted. (WebCore::boundsForRects): Deleted. (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange const): Deleted. (WebCore::AccessibilityRenderObject::boundsForRange const): Deleted. * Source/WebCore/accessibility/AccessibilityRenderObject.h: * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h: Canonical link: https://commits.webkit.org/263287@main
- Loading branch information
Showing
7 changed files
with
130 additions
and
122 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