AX: Radio button members are not identified together in all cases
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Mar 2016 15:21:33 +0000 (15:21 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Mar 2016 15:21:33 +0000 (15:21 +0000)
commit694477592010b234abaf1dc29bac0d8f18de420c
treecac9a8dc74a84d4e2b32a3d5c5bfb8458565cff0
parent6247c38ee39b72358983d64ba60584df69d3e367
AX: Radio button members are not identified together in all cases
https://bugs.webkit.org/show_bug.cgi?id=155604
<rdar://problem/21186992>

Reviewed by Darin Adler.

Source/WebCore:

Allow aria radio buttons to be grouped together as linked ui elements even if they're not input types of radio button.

Modified test: accessibility/radio-button-group-members.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::speakProperty):
(WebCore::AccessibilityRenderObject::addRadioButtonGroupChildren):
(WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
* accessibility/AccessibilityRenderObject.h:

LayoutTests:

* accessibility/mac/radio-button-group-members-expected.txt: Added.
* accessibility/radio-button-group-members.html:
* platform/mac/accessibility/radio-button-group-members-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/mac/radio-button-group-members-expected.txt [moved from LayoutTests/platform/mac/accessibility/radio-button-group-members-expected.txt with 87% similarity]
LayoutTests/accessibility/radio-button-group-members.html
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp
Source/WebCore/accessibility/AccessibilityRenderObject.h