Changeset 159295 in webkit
- Timestamp:
- Nov 14, 2013 10:57:11 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r159292 r159295 1 2013-11-14 Samuel White <samuel_white@apple.com> 2 3 AX: Calling NSAccessibilityColumnsAttribute and NSAccessibilityRowsAttribute simply to get column/row count can be very expensive. 4 https://bugs.webkit.org/show_bug.cgi?id=124293 5 6 Reviewed by Chris Fleizach. 7 8 Added test to ensure NSAccessibilityColumnsAttribute and NSAccessibilityRowsAttribute 9 behave as expected. Also updated existing table tests to reflect this additional API. 10 11 * platform/mac/accessibility/table-column-and-row-count-expected.txt: Added. 12 * platform/mac/accessibility/table-column-and-row-count.html: Added. 13 * platform/mac/accessibility/table-detection-expected.txt: 14 * platform/mac/accessibility/table-with-rules-expected.txt: 15 1 16 2013-11-14 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/LayoutTests/platform/mac/accessibility/table-detection-expected.txt
r156011 r159295 34 34 AXRowHeaderUIElements: <array of size 0> 35 35 AXHeader: <AXTable> 36 AXColumnCount: 2 37 AXRowCount: 2 36 38 AXElementBusy: 0 37 39 … … 74 76 AXRowHeaderUIElements: <array of size 0> 75 77 AXHeader: <AXTable> 78 AXColumnCount: 2 79 AXRowCount: 1 76 80 AXElementBusy: 0 77 81 … … 145 149 AXRowHeaderUIElements: <array of size 0> 146 150 AXHeader: <AXTable> 151 AXColumnCount: 2 152 AXRowCount: 1 147 153 AXElementBusy: 0 148 154 … … 184 190 AXRowHeaderUIElements: <array of size 0> 185 191 AXHeader: <AXTable> 192 AXColumnCount: 2 193 AXRowCount: 1 186 194 AXElementBusy: 0 187 195 … … 223 231 AXRowHeaderUIElements: <array of size 0> 224 232 AXHeader: <AXTable> 233 AXColumnCount: 2 234 AXRowCount: 2 225 235 AXElementBusy: 0 226 236 … … 263 273 AXRowHeaderUIElements: <array of size 0> 264 274 AXHeader: <AXTable> 275 AXColumnCount: 2 276 AXRowCount: 1 265 277 AXElementBusy: 0 266 278 … … 366 378 AXRowHeaderUIElements: <array of size 0> 367 379 AXHeader: <AXTable> 380 AXColumnCount: 2 381 AXRowCount: 1 368 382 AXElementBusy: 0 369 383 … … 475 489 AXRowHeaderUIElements: <array of size 0> 476 490 AXHeader: <AXTable> 491 AXColumnCount: 2 492 AXRowCount: 1 477 493 AXElementBusy: 0 478 494 … … 514 530 AXRowHeaderUIElements: <array of size 0> 515 531 AXHeader: <AXTable> 532 AXColumnCount: 2 533 AXRowCount: 2 516 534 AXElementBusy: 0 517 535 … … 587 605 AXRowHeaderUIElements: <array of size 0> 588 606 AXHeader: <AXTable> 607 AXColumnCount: 2 608 AXRowCount: 3 589 609 AXElementBusy: 0 590 610 … … 628 648 AXRowHeaderUIElements: <array of size 0> 629 649 AXHeader: <AXTable> 650 AXColumnCount: 2 651 AXRowCount: 3 630 652 AXElementBusy: 0 631 653 … … 669 691 AXRowHeaderUIElements: <array of size 0> 670 692 AXHeader: <AXTable> 693 AXColumnCount: 2 694 AXRowCount: 2 671 695 AXElementBusy: 0 672 696 … … 709 733 AXRowHeaderUIElements: <array of size 0> 710 734 AXHeader: <AXTable> 711 AXElementBusy: 0 712 713 714 asdf 715 asdf 716 asdf 717 asdf 718 asdf 719 asdf 720 asdf 721 asdf 722 asdf 723 asdf 724 asdf 725 asdf 726 asdf 727 asdf 728 asdf 729 asdf 730 asdf 731 asdf 732 asdf 733 asdf 734 asdf 735 asdf 736 asdf 737 asdf 738 735 AXColumnCount: 1 736 AXRowCount: 24 737 AXElementBusy: 0 738 739 740 asdf 741 asdf 742 asdf 743 asdf 744 asdf 745 asdf 746 asdf 747 asdf 748 asdf 749 asdf 750 asdf 751 asdf 752 asdf 753 asdf 754 asdf 755 asdf 756 asdf 757 asdf 758 asdf 759 asdf 760 asdf 761 asdf 762 asdf 763 asdf 764 -
trunk/LayoutTests/platform/mac/accessibility/table-with-rules-expected.txt
r156011 r159295 38 38 AXRowHeaderUIElements: <array of size 0> 39 39 AXHeader: <AXTable> 40 AXColumnCount: 2 41 AXRowCount: 1 40 42 AXElementBusy: 0 41 43 … … 73 75 AXRowHeaderUIElements: <array of size 0> 74 76 AXHeader: <AXTable> 77 AXColumnCount: 2 78 AXRowCount: 1 75 79 AXElementBusy: 0 76 80 … … 108 112 AXRowHeaderUIElements: <array of size 0> 109 113 AXHeader: <AXTable> 114 AXColumnCount: 2 115 AXRowCount: 1 110 116 AXElementBusy: 0 111 117 -
trunk/Source/WebCore/ChangeLog
r159292 r159295 1 2013-11-14 Samuel White <samuel_white@apple.com> 2 3 AX: Calling NSAccessibilityColumnsAttribute and NSAccessibilityRowsAttribute simply to get column/row count can be very expensive. 4 https://bugs.webkit.org/show_bug.cgi?id=124293 5 6 Reviewed by Chris Fleizach. 7 8 Added ability to get accessibility table column or row count without fetching all columns or rows. 9 10 Test: platform/mac/accessibility/table-column-and-row-count.html 11 12 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 13 (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]): 14 (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): 15 1 16 2013-11-14 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r159026 r159295 1310 1310 [tempArray addObject:NSAccessibilityRowHeaderUIElementsAttribute]; 1311 1311 [tempArray addObject:NSAccessibilityHeaderAttribute]; 1312 [tempArray addObject:NSAccessibilityColumnCountAttribute]; 1313 [tempArray addObject:NSAccessibilityRowCountAttribute]; 1312 1314 tableAttrs = [[NSArray alloc] initWithArray:tempArray]; 1313 1315 [tempArray release]; … … 2398 2400 return convertToNSArray(cells); 2399 2401 } 2402 2403 if ([attributeName isEqualToString:NSAccessibilityColumnCountAttribute]) 2404 return @(toAccessibilityTable(m_object)->columnCount()); 2405 2406 if ([attributeName isEqualToString:NSAccessibilityRowCountAttribute]) 2407 return @(toAccessibilityTable(m_object)->rowCount()); 2400 2408 } 2401 2409
Note: See TracChangeset
for help on using the changeset viewer.