⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184046 in webkit


Ignore:
Timestamp:
May 10, 2015, 7:52:50 AM (11 years ago)
Author:
Chris Fleizach
Message:

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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r184042 r184046  
     12015-05-10  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Don't expose elements as data tables just because they use display: table
     4        https://bugs.webkit.org/show_bug.cgi?id=144804
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        * accessibility/css-table-ignored-expected.txt: Added.
     9        * accessibility/css-table-ignored.html: Added.
     10
    1112015-05-09  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r184042 r184046  
     12015-05-10  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Don't expose elements as data tables just because they use display: table
     4        https://bugs.webkit.org/show_bug.cgi?id=144804
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        Elements will create RenderTable objects if they have display:table. We shouldn't assume these are accessibility tables.
     9
     10        Test: accessibility/css-table-ignored.html
     11
     12        * accessibility/AccessibilityTable.cpp:
     13        (WebCore::AccessibilityTable::isDataTable):
     14
    1152015-05-09  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/accessibility/AccessibilityTable.cpp

    r183798 r184046  
    151151    }
    152152   
     153    // The following checks should only apply if this is a real <table> element.
     154    if (!hasTagName(tableTag))
     155        return false;
     156   
    153157    RenderTable& table = downcast<RenderTable>(*m_renderer);
    154158    // go through the cell's and check for tell-tale signs of "data" table status
Note: See TracChangeset for help on using the changeset viewer.