[webkit-changes] [WebKit/WebKit] 791a38: AX: WebKit computes the wrong accessibility clickp...
Tyler Wilcock
noreply at github.com
Sat Apr 22 17:33:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 791a382d9c3428f94b8118d49a6d3b590c4789a9
https://github.com/WebKit/WebKit/commit/791a382d9c3428f94b8118d49a6d3b590c4789a9
Author: Tyler Wilcock <tyler_w at apple.com>
Date: 2023-04-22 (Sat, 22 Apr 2023)
Changed paths:
M LayoutTests/accessibility/mac/heading-clickpoint-expected.txt
M LayoutTests/accessibility/mac/heading-clickpoint.html
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/accessibility/AccessibilityObject.h
M Source/WebCore/accessibility/AccessibilityRenderObject.cpp
M Source/WebCore/accessibility/AccessibilityRenderObject.h
M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
Log Message:
-----------
AX: WebKit computes the wrong accessibility clickpoint for display:contents 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
More information about the webkit-changes
mailing list