AX: Don't expose elements as data tables just because they use display: table
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 May 2015 14:52:50 +0000 (14:52 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 May 2015 14:52:50 +0000 (14:52 +0000)
commit2c5a0c752ea90c263d6519f455e70627b5617027
treeb8f39aa91f4907fe75624f3e17f0ef374dde554e
parent486b0b8a9f7e46cac75a19dfd8c412bcc8f5ca46
AX: Don't expose elements as data tables just because they use display: table
https://bugs.webkit.org/show_bug.cgi?id=144804

Reviewed by Mario Sanchez Prada.

Source/WebCore:

Elements will create RenderTable objects if they have display:table. We shouldn't assume these are accessibility tables.

Test: accessibility/css-table-ignored.html

* accessibility/AccessibilityTable.cpp:
(WebCore::AccessibilityTable::isDataTable):

LayoutTests:

* accessibility/css-table-ignored-expected.txt: Added.
* accessibility/css-table-ignored.html: Added.

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