AX: Tables with <colgroups> are not reporting table column headers
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Oct 2014 15:20:38 +0000 (15:20 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Oct 2014 15:20:38 +0000 (15:20 +0000)
commit66b3ea815d7cc2e634e6d1bd13caadda784bcb06
tree7c0b833d305cd3cdb34fd81e40efd8acd3b4f012
parenta72592ba600c090d8633e473bc931a32217b352d
AX: Tables with <colgroups> are not reporting table column headers
https://bugs.webkit.org/show_bug.cgi?id=137846

Reviewed by Mario Sanchez Prada.

Source/WebCore:

The code to search for header objects was getting stuck on anonymous RenderTableSections.
We also need to check more rows for headers, in case the first row or more is not visible or is empty.

Test: accessibility/table-column-headers-with-captions.html

* accessibility/AccessibilityTableColumn.cpp:
(WebCore::AccessibilityTableColumn::headerObject):
(WebCore::AccessibilityTableColumn::headerObjectForSection):

LayoutTests:

* accessibility/table-column-headers-with-captions-expected.txt: Added.
* accessibility/table-column-headers-with-captions.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/table-column-headers-with-captions-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/table-column-headers-with-captions.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityTableColumn.cpp