Changeset 169631 in webkit
- Timestamp:
- Jun 5, 2014 4:53:17 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r169629 r169631 1 2014-06-05 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: [ATK] Children of tables and lists with role='presentation' should each be exposed as if they were div elements 4 https://bugs.webkit.org/show_bug.cgi?id=133133 5 6 Reviewed by Chris Fleizach. 7 8 Added a new test with platform-specific expectations due to differences 9 in accessible hierarchies. 10 11 * accessibility/aria-inherits-presentational.html: Added. 12 * platform/gtk/accessibility/aria-inherits-presentational-expected.txt: Added. 13 * platform/mac/accessibility/aria-inherits-presentational-expected.txt: Added. 14 1 15 2014-06-05 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r169630 r169631 1 2014-06-05 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: [ATK] Children of tables and lists with role='presentation' should each be exposed as if they were div elements 4 https://bugs.webkit.org/show_bug.cgi?id=133133 5 6 Reviewed by Chris Fleizach. 7 8 When a table or list has role='presentation', accessibility is "ignored" 9 for that element, but not for the required children. The default roles 10 for the children (CellRole and ListItemRole) do not make sense without 11 the parent, therefore map them to DivRole in ATK if they inherit the 12 presentational role. 13 14 Test: accessibility/aria-inherits-presentational.html 15 16 * accessibility/AccessibilityObject.h: 17 (WebCore::AccessibilityObject::inheritsPresentationalRole): 18 * accessibility/AccessibilityRenderObject.cpp: 19 (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): 20 * accessibility/AccessibilityRenderObject.h: 21 * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: 22 (atkRole): 23 1 24 2014-06-05 Brent Fulgham <bfulgham@apple.com> 2 25 -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r168427 r169631 644 644 virtual bool isPresentationalChildOfAriaRole() const { return false; } 645 645 virtual bool ariaRoleHasPresentationalChildren() const { return false; } 646 virtual bool inheritsPresentationalRole() const { return false; } 646 647 647 648 // Accessibility Text -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r168432 r169631 2652 2652 // http://www.w3.org/WAI/PF/aria/complete#presentation 2653 2653 static NeverDestroyed<HashSet<QualifiedName>> listItemParents; 2654 static NeverDestroyed<HashSet<QualifiedName>> tableCellParents; 2654 2655 2655 2656 HashSet<QualifiedName>* possibleParentTagNames = 0; … … 2663 2664 } 2664 2665 possibleParentTagNames = &listItemParents.get(); 2666 break; 2667 case CellRole: 2668 if (tableCellParents.get().isEmpty()) 2669 tableCellParents.get().add(tableTag); 2670 possibleParentTagNames = &tableCellParents.get(); 2665 2671 break; 2666 2672 default: -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.h
r168042 r169631 284 284 virtual bool ariaLiveRegionBusy() const override; 285 285 286 bool inheritsPresentationalRole() const;286 virtual bool inheritsPresentationalRole() const override; 287 287 288 288 #if ENABLE(MATHML) -
trunk/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
r167011 r169631 682 682 case ColumnHeaderRole: // Column headers are cells after all. 683 683 case CellRole: 684 return ATK_ROLE_TABLE_CELL;684 return coreObject->inheritsPresentationalRole() ? ATK_ROLE_SECTION : ATK_ROLE_TABLE_CELL; 685 685 case LinkRole: 686 686 case WebCoreLinkRole: … … 705 705 return ATK_ROLE_LIST; 706 706 case ListItemRole: 707 return coreObject->inheritsPresentationalRole() ? ATK_ROLE_SECTION : ATK_ROLE_LIST_ITEM; 707 708 case ListBoxOptionRole: 708 709 return ATK_ROLE_LIST_ITEM;
Note: See TracChangeset
for help on using the changeset viewer.