AX: Expose link rel type to voiceover
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 May 2018 01:21:15 +0000 (01:21 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 May 2018 01:21:15 +0000 (01:21 +0000)
commitfec075bb30d9f5275fc1cb1d05c931fe450f1e3b
tree6385615a666d0bcd6261d97998849a702c97d4a9
parent93351e5ef72c87ac1576bfdbb853e22edf9aa32b
AX: Expose link rel type to voiceover
https://bugs.webkit.org/show_bug.cgi?id=186084
<rdar://problem/40640871>

Reviewed by Sam Weinig.

Source/WebCore:

Make the link rel attribute available to accessibility clients.

Test: accessibility/mac/linkrel.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::linkRelValue const):
* accessibility/AccessibilityObject.h:
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilityLinkRelationshipType]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

* accessibility/image-link-expected.txt:
* accessibility/image-map2-expected.txt:
* accessibility/mac/document-links-expected.txt:
* accessibility/mac/linkrel-expected.txt: Added.
* accessibility/mac/linkrel.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/image-link-expected.txt
LayoutTests/accessibility/image-map2-expected.txt
LayoutTests/accessibility/mac/document-links-expected.txt
LayoutTests/accessibility/mac/linkrel-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/mac/linkrel.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityObject.cpp
Source/WebCore/accessibility/AccessibilityObject.h
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm