AX: SVG AAM mapping trumps ARIA role attribute in the case of SVG root
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 19:34:51 +0000 (19:34 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 19:34:51 +0000 (19:34 +0000)
commitfdf40bfa7cb71d30eaa9832dbd248e43f885d8a2
tree1f275eead876bd5a27ef98e2ca8502c0d71df6a7
parent98ad4cd2d2aa1cc9c0bf6d3af871bd1cf57bfdb2
AX: SVG AAM mapping trumps ARIA role attribute in the case of SVG root
https://bugs.webkit.org/show_bug.cgi?id=181994

Reviewed by Chris Fleizach.

Source/WebCore:

Only return AccessibilityRole::Group if we have no author-provided
ARIA role attribute value.

Test: accessibility/svg-element-with-aria-role.html

* accessibility/AccessibilitySVGRoot.cpp:
(WebCore::AccessibilitySVGRoot::roleValue const):
* accessibility/AccessibilitySVGRoot.h:

LayoutTests:

* accessibility/svg-element-with-aria-role.html: Added.
* platform/gtk/accessibility/svg-element-with-aria-role-expected.txt: Added.
* platform/mac/accessibility/svg-element-with-aria-role-expected.txt: Added.
* platform/win/TestExpectations: Skip test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/svg-element-with-aria-role.html [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/svg-element-with-aria-role-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/accessibility/svg-element-with-aria-role-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilitySVGRoot.cpp
Source/WebCore/accessibility/AccessibilitySVGRoot.h