Changeset 193841 in webkit
- Timestamp:
- Dec 9, 2015 10:24:35 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r193838 r193841 1 2015-12-09 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: [GTK] Anonymous render block flow elements should be exposed as ATK_ROLE_SECTION; not ATK_ROLE_PANEL 4 https://bugs.webkit.org/show_bug.cgi?id=152070 5 6 Reviewed by Mario Sanchez Prada. 7 8 * platform/gtk/accessibility/deleting-iframe-destroys-axcache-expected.txt: Added. 9 * platform/gtk/accessibility/gtk/media-controls-panel-title-expected.txt: Added. 10 * platform/gtk/accessibility/gtk/replaced-objects-in-anonymous-blocks-expected.txt: Added. 11 * platform/gtk/accessibility/image-link-expected.txt: Updated 12 * platform/gtk/accessibility/image-with-alt-and-map-expected.txt: Updated. 13 * platform/gtk/accessibility/lists-expected.txt: Updated. 14 * platform/gtk/accessibility/media-emits-object-replacement-expected.txt: Updated. 15 1 16 2015-12-09 Ryan Haddad <ryanhaddad@apple.com> 2 17 -
trunk/LayoutTests/platform/gtk/accessibility/image-link-expected.txt
r189467 r193841 5 5 6 6 AXRole: AXLink 7 AXParent: AX Group7 AXParent: AXSection 8 8 AXChildren: 1 9 9 AXPosition: { 8.000000, 98.000000 } -
trunk/LayoutTests/platform/gtk/accessibility/image-with-alt-and-map-expected.txt
r189467 r193841 7 7 8 8 AXRole: AXWebArea AXTitle: AXDescription: 9 AXRole: AX GroupAXTitle: AXDescription:9 AXRole: AXSection AXTitle: AXDescription: 10 10 AXRole: AXImageMap AXTitle: foo bar baz AXDescription: foo bar baz 11 11 AXRole: AXLink AXTitle: foo AXDescription: foo -
trunk/LayoutTests/platform/gtk/accessibility/lists-expected.txt
r189467 r193841 66 66 AXPlatformAttributes: tag:dl, toolkit:WebKitGtk 67 67 ------------ 68 AXRole: AX Group68 AXRole: AXSection 69 69 AXParent: AXWebArea 70 70 AXChildren: 0 … … 83 83 AXRequired: 0 84 84 AXChecked: 0 85 AXPlatformAttributes: computed-role:group,toolkit:WebKitGtk85 AXPlatformAttributes: toolkit:WebKitGtk 86 86 ------------ 87 87 -
trunk/LayoutTests/platform/gtk/accessibility/media-emits-object-replacement-expected.txt
r193831 r193841 10 10 AXRole: AXSlider 11 11 AXRole: AXTimer AXValue: 00:00 12 AXRole: AX GroupAXValue: <\n>12 AXRole: AXSection AXValue: <\n> 13 13 AXRole: AXSection AXValue: a <obj> b 14 14 AXRole: AXAudio -
trunk/Source/WebCore/ChangeLog
r193840 r193841 1 2015-12-09 Joanmarie Diggs <jdiggs@igalia.com> 2 3 AX: [GTK] Anonymous render block flow elements should be exposed as ATK_ROLE_SECTION; not ATK_ROLE_PANEL 4 https://bugs.webkit.org/show_bug.cgi?id=152070 5 6 Reviewed by Mario Sanchez Prada. 7 8 Map the element to WebCore AccessibilityRole DivRole for GTK. This is being 9 done in the shared layer rather than in the platform layer because we want all 10 subsequent logic to treat anonymous render block flow elements as divs. 11 12 No new tests. We already have sufficient test coverage. The expectations 13 been updated accordingly. 14 15 * accessibility/AccessibilityRenderObject.cpp: 16 (WebCore::AccessibilityRenderObject::determineAccessibilityRole): 17 1 18 2015-12-09 Keith Rollin <krollin@apple.com> 2 19 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r192173 r193841 2699 2699 if (node && node->hasTagName(footerTag) && !isDescendantOfElementType(articleTag) && !isDescendantOfElementType(sectionTag)) 2700 2700 return FooterRole; 2701 2702 if (m_renderer->isRenderBlockFlow())2703 return GroupRole;2704 2701 2705 2702 // If the element does not have role, but it has ARIA attributes, or accepts tab focus, accessibility should fallback to exposing it as a group. 2706 2703 if (supportsARIAAttributes() || canSetFocusAttribute()) 2707 2704 return GroupRole; 2705 2706 if (m_renderer->isRenderBlockFlow()) { 2707 #if PLATFORM(GTK) 2708 // For ATK, GroupRole maps to ATK_ROLE_PANEL. Panels are most commonly found (and hence 2709 // expected) in UI elements; not text blocks. 2710 return m_renderer->isAnonymousBlock() ? DivRole : GroupRole; 2711 #else 2712 return GroupRole; 2713 #endif 2714 } 2708 2715 2709 2716 // InlineRole is the final fallback before assigning UnknownRole to an object. It makes it
Note: See TracChangeset
for help on using the changeset viewer.