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

Changeset 167558 in webkit


Ignore:
Timestamp:
Apr 19, 2014, 6:25:28 PM (12 years ago)
Author:
Chris Fleizach
Message:

AX: Malformed tables exposing incorrect col and colSpans
https://bugs.webkit.org/show_bug.cgi?id=131796

Reviewed by Darin Adler.

Source/WebCore:
Test: accessibility/table-incorrect-colspan-cell.html

When a developer has specified malformed colspans, accessibility is reporting those values instead of the effective column information.

  • accessibility/AccessibilityTableCell.cpp:

(WebCore::AccessibilityTableCell::columnIndexRange):

LayoutTests:

  • accessibility/table-incorrect-colspan-cell-expected.txt: Added.
  • accessibility/table-incorrect-colspan-cell.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167555 r167558  
     12014-04-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Malformed tables exposing incorrect col and colSpans
     4        https://bugs.webkit.org/show_bug.cgi?id=131796
     5
     6        Reviewed by Darin Adler.
     7
     8        * accessibility/table-incorrect-colspan-cell-expected.txt: Added.
     9        * accessibility/table-incorrect-colspan-cell.html: Added.
     10
    1112014-04-19  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r167557 r167558  
     12014-04-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Malformed tables exposing incorrect col and colSpans
     4        https://bugs.webkit.org/show_bug.cgi?id=131796
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: accessibility/table-incorrect-colspan-cell.html
     9
     10        When a developer has specified malformed colspans, accessibility is reporting those values instead of the effective column information.
     11
     12        * accessibility/AccessibilityTableCell.cpp:
     13        (WebCore::AccessibilityTableCell::columnIndexRange):
     14
    1152014-04-19  Benjamin Poulain  <bpoulain@apple.com>
    216
  • trunk/Source/WebCore/accessibility/AccessibilityTableCell.cpp

    r167361 r167558  
    249249        return;
    250250   
    251     RenderTableCell* renderCell = toRenderTableCell(m_renderer);
    252     columnRange.first = renderCell->col();
    253     columnRange.second = renderCell->colSpan();   
     251    const RenderTableCell& cell = *toRenderTableCell(m_renderer);
     252    columnRange.first = cell.table()->colToEffCol(cell.col());
     253    columnRange.second = cell.table()->colToEffCol(cell.col() + cell.colSpan()) - columnRange.first;
    254254}
    255255   
Note: See TracChangeset for help on using the changeset viewer.