AX: VoiceOver in Safari does not read table header for first cell in first body row
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Nov 2017 23:44:16 +0000 (23:44 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Nov 2017 23:44:16 +0000 (23:44 +0000)
commitf62e1788d1fdbeab76a667011468e8e230f8092e
tree60898fc962f7b25d8cc9b9f415baa599052d9ac7
parentf27d5314b97674354a6d120f322410a54b63bc33
AX: VoiceOver in Safari does not read table header for first cell in first body row
https://bugs.webkit.org/show_bug.cgi?id=179780
<rdar://problem/35590551>

Reviewed by Joanmarie Diggs.

Source/WebCore:

A table cell shouldn't be considered a row header if it's in a row of other headers.

Test: accessibility/table-header-calculation-for-header-rows.html

* accessibility/AccessibilityTableRow.cpp:
(WebCore::AccessibilityTableRow::headerObject):

LayoutTests:

* accessibility/table-header-calculation-for-header-rows-expected.txt: Added.
* accessibility/table-header-calculation-for-header-rows.html: Added.
* accessibility/table-attributes-expected.txt: Updated.
* platform/gtk/accessibility/table-attributes-expected.txt: Updated.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/table-attributes-expected.txt
LayoutTests/accessibility/table-header-calculation-for-header-rows-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/table-header-calculation-for-header-rows.html [new file with mode: 0644]
LayoutTests/platform/gtk/accessibility/table-attributes-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityTableRow.cpp