Changeset 216009 in webkit
- Timestamp:
- May 1, 2017 12:56:18 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216008 r216009 1 2017-05-01 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: AccessibilityTable::ariaRowCount() and ariaColumnCount() should not return -1 unless that is the author-provided value 4 https://bugs.webkit.org/show_bug.cgi?id=171475 5 6 Reviewed by Chris Fleizach. 7 8 * accessibility/table-detection-expected.txt: Updated. 9 * accessibility/table-with-rules-expected.txt: Updated. 10 1 11 2017-05-01 Carlos Garcia Campos <cgarcia@igalia.com> 2 12 -
trunk/LayoutTests/accessibility/table-detection-expected.txt
r198356 r216009 39 39 AXColumnCount: 2 40 40 AXRowCount: 2 41 AXARIAColumnCount: -142 AXARIARowCount: -141 AXARIAColumnCount: 0 42 AXARIARowCount: 0 43 43 AXElementBusy: 0 44 44 … … 86 86 AXColumnCount: 2 87 87 AXRowCount: 1 88 AXARIAColumnCount: -189 AXARIARowCount: -188 AXARIAColumnCount: 0 89 AXARIARowCount: 0 90 90 AXElementBusy: 0 91 91 … … 167 167 AXColumnCount: 2 168 168 AXRowCount: 1 169 AXARIAColumnCount: -1170 AXARIARowCount: -1169 AXARIAColumnCount: 0 170 AXARIARowCount: 0 171 171 AXElementBusy: 0 172 172 … … 213 213 AXColumnCount: 2 214 214 AXRowCount: 1 215 AXARIAColumnCount: -1216 AXARIARowCount: -1215 AXARIAColumnCount: 0 216 AXARIARowCount: 0 217 217 AXElementBusy: 0 218 218 … … 259 259 AXColumnCount: 2 260 260 AXRowCount: 2 261 AXARIAColumnCount: -1262 AXARIARowCount: -1261 AXARIAColumnCount: 0 262 AXARIARowCount: 0 263 263 AXElementBusy: 0 264 264 … … 306 306 AXColumnCount: 2 307 307 AXRowCount: 1 308 AXARIAColumnCount: -1309 AXARIARowCount: -1308 AXARIAColumnCount: 0 309 AXARIARowCount: 0 310 310 AXElementBusy: 0 311 311 … … 422 422 AXColumnCount: 2 423 423 AXRowCount: 1 424 AXARIAColumnCount: -1425 AXARIARowCount: -1424 AXARIAColumnCount: 0 425 AXARIARowCount: 0 426 426 AXElementBusy: 0 427 427 … … 544 544 AXColumnCount: 2 545 545 AXRowCount: 1 546 AXARIAColumnCount: -1547 AXARIARowCount: -1546 AXARIAColumnCount: 0 547 AXARIARowCount: 0 548 548 AXElementBusy: 0 549 549 … … 590 590 AXColumnCount: 2 591 591 AXRowCount: 2 592 AXARIAColumnCount: -1593 AXARIARowCount: -1592 AXARIAColumnCount: 0 593 AXARIARowCount: 0 594 594 AXElementBusy: 0 595 595 … … 673 673 AXColumnCount: 2 674 674 AXRowCount: 3 675 AXARIAColumnCount: -1676 AXARIARowCount: -1675 AXARIAColumnCount: 0 676 AXARIARowCount: 0 677 677 AXElementBusy: 0 678 678 … … 721 721 AXColumnCount: 2 722 722 AXRowCount: 3 723 AXARIAColumnCount: -1724 AXARIARowCount: -1723 AXARIAColumnCount: 0 724 AXARIARowCount: 0 725 725 AXElementBusy: 0 726 726 … … 769 769 AXColumnCount: 2 770 770 AXRowCount: 2 771 AXARIAColumnCount: -1772 AXARIARowCount: -1771 AXARIAColumnCount: 0 772 AXARIARowCount: 0 773 773 AXElementBusy: 0 774 774 … … 816 816 AXColumnCount: 1 817 817 AXRowCount: 24 818 AXARIAColumnCount: -1819 AXARIARowCount: -1818 AXARIAColumnCount: 0 819 AXARIARowCount: 0 820 820 AXElementBusy: 0 821 821 … … 885 885 AXColumnCount: 2 886 886 AXRowCount: 2 887 AXARIAColumnCount: -1888 AXARIARowCount: -1887 AXARIAColumnCount: 0 888 AXARIARowCount: 0 889 889 AXElementBusy: 0 890 890 -
trunk/LayoutTests/accessibility/table-with-rules-expected.txt
r198356 r216009 43 43 AXColumnCount: 2 44 44 AXRowCount: 1 45 AXARIAColumnCount: -146 AXARIARowCount: -145 AXARIAColumnCount: 0 46 AXARIARowCount: 0 47 47 AXElementBusy: 0 48 48 … … 85 85 AXColumnCount: 2 86 86 AXRowCount: 1 87 AXARIAColumnCount: -188 AXARIARowCount: -187 AXARIAColumnCount: 0 88 AXARIARowCount: 0 89 89 AXElementBusy: 0 90 90 … … 127 127 AXColumnCount: 2 128 128 AXRowCount: 1 129 AXARIAColumnCount: -1130 AXARIARowCount: -1129 AXARIAColumnCount: 0 130 AXARIARowCount: 0 131 131 AXElementBusy: 0 132 132 -
trunk/Source/WebCore/ChangeLog
r216007 r216009 1 2017-05-01 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: AccessibilityTable::ariaRowCount() and ariaColumnCount() should not return -1 unless that is the author-provided value 4 https://bugs.webkit.org/show_bug.cgi?id=171475 5 6 Reviewed by Chris Fleizach. 7 8 If the author has provided a valid value, return it. Otherwise, return 0. 9 10 No new tests needed. Update existing test expectations to reflect the change. 11 12 * accessibility/AccessibilityTable.cpp: 13 (WebCore::AccessibilityTable::ariaColumnCount): 14 (WebCore::AccessibilityTable::ariaRowCount): 15 1 16 2017-05-01 Joanmarie Diggs <jdiggs@igalia.com> 2 17 -
trunk/Source/WebCore/accessibility/AccessibilityTable.cpp
r215988 r216009 672 672 673 673 int colCountInt = colCountValue.toInt(); 674 // If only a portion of the columns is present in the DOM at a given moment, this attribute is needed to 675 // provide an explicit indication of the number of columns in the full table. 676 if (colCountInt > (int)m_columns.size()) 674 // The ARIA spec states, "Authors must set the value of aria-colcount to an integer equal to the 675 // number of columns in the full table. If the total number of columns is unknown, authors must 676 // set the value of aria-colcount to -1 to indicate that the value should not be calculated by 677 // the user agent." If we have a valid value, make it available to platforms. 678 if (colCountInt == -1 || colCountInt >= (int)m_columns.size()) 677 679 return colCountInt; 678 680 679 return -1;681 return 0; 680 682 } 681 683 … … 685 687 686 688 int rowCountInt = rowCountValue.toInt(); 687 // If only a portion of the rows is present in the DOM at a given moment, this attribute is needed to 688 // provide an explicit indication of the number of rows in the full table. 689 if (rowCountInt > (int)m_rows.size()) 689 // The ARIA spec states, "Authors must set the value of aria-rowcount to an integer equal to the 690 // number of rows in the full table. If the total number of rows is unknown, authors must set 691 // the value of aria-rowcount to -1 to indicate that the value should not be calculated by the 692 // user agent." If we have a valid value, make it available to platforms. 693 if (rowCountInt == -1 || rowCountInt >= (int)m_rows.size()) 690 694 return rowCountInt; 691 695 692 return -1;696 return 0; 693 697 } 694 698
Note: See TracChangeset
for help on using the changeset viewer.