Changeset 187935 in webkit
- Timestamp:
- Aug 4, 2015 8:38:58 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r187934 r187935 1 2015-08-04 Doug Russell <d_russell@apple.com> 2 3 AX: tree item children returned from ranged getter are different from full array of children 4 https://bugs.webkit.org/show_bug.cgi?id=147660 5 6 Add an isTreeItem() check in ranged element getter so that it matches the logic in 7 the getter for the full children array. This prevents returning a row as a child 8 when only the rows contents should be returned. This prevents navigation issues on 9 websites without aria outlines. 10 11 Reviewed by Chris Fleizach. 12 13 * accessibility/mac/aria-tree-item-children-expected.txt: Added. 14 * accessibility/mac/aria-tree-item-children.html: Added. 15 1 16 2015-08-04 Hunseop Jeong <hs85.jeong@samsung.com> 2 17 -
trunk/Source/WebCore/ChangeLog
r187931 r187935 1 2015-08-04 Doug Russell <d_russell@apple.com> 2 3 AX: tree item children returned from ranged getter are different from full array of children 4 https://bugs.webkit.org/show_bug.cgi?id=147660 5 6 Reviewed by Chris Fleizach. 7 8 Add an isTreeItem() check in ranged element getter so that it matches the logic in 9 the getter for the full children array. This prevents returning a row as a child 10 when only the rows contents should be returned. This prevents navigation issues on 11 websites without aria outlines. 12 13 Test: accessibility/mac/aria-tree-item-children.html 14 15 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 16 (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]): 17 1 18 2015-08-04 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r186692 r187935 4049 4049 NSUInteger arrayLength = std::min(childCount - index, maxCount); 4050 4050 return [children subarrayWithRange:NSMakeRange(index, arrayLength)]; 4051 } else if (m_object->isTree()) { 4052 // Tree objects return their rows as their children. We can use the original method in this case. 4051 } else if (m_object->isTree() || m_object->isTreeItem()) { 4052 // Tree objects return their rows as their children & tree items return their contents sans rows. 4053 // We can use the original method in this case. 4053 4054 return [super accessibilityArrayAttributeValues:attribute index:index maxCount:maxCount]; 4054 4055 }
Note: See TracChangeset
for help on using the changeset viewer.