AX: Progress: [Mac] Content in label element should be used as AXTitle or AXDescription
authorn_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Sep 2016 21:02:42 +0000 (21:02 +0000)
committern_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Sep 2016 21:02:42 +0000 (21:02 +0000)
commit9689718bd8657ac2373b3c14b28f2577b38acd7b
tree196a8a58b9e2e9aca4d8fd2375f88d2be97461cb
parent5894afebd4097a68b564a6a2594e78593d371d3c
AX: Progress: [Mac] Content in label element should be used as AXTitle or AXDescription
https://bugs.webkit.org/show_bug.cgi?id=162573

Reviewed by Chris Fleizach.

Source/WebCore:

Exposed the label element's text as the AXTitle of the progress indicator.

Test: accessibility/mac/progress-with-label-element.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::titleElementText):
(WebCore::AccessibilityNodeObject::title):

LayoutTests:

* accessibility/mac/progress-with-label-element-expected.txt: Added.
* accessibility/mac/progress-with-label-element.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/mac/progress-with-label-element-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/mac/progress-with-label-element.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityNodeObject.cpp