Changeset 52351 in webkit
- Timestamp:
- Dec 18, 2009 4:05:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52350 r52351 1 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of list items is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32688 6 7 Reviewed by Adam Roben. 8 9 * platform/win/accessibility/list-item-role-expected.txt: Added. 10 * platform/win/accessibility/list-item-role.html: Added. 11 Verify that the list item role is "list item". 12 1 13 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r52349 r52351 1 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of list items is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32688 6 7 Reviewed by Adam Roben. 8 9 Test: platform/win/accessibility/list-item-role.html 10 11 * accessibility/AccessibilityObject.h: 12 (WebCore::): 13 Add a ListItemRole to the enum. 14 15 * accessibility/AccessibilityRenderObject.cpp: 16 (WebCore::msaaRoleForRenderer): 17 Return the role for the RenderObject, or UnknownRole if unknown. 18 (WebCore::AccessibilityRenderObject::roleValueForMSAA): 19 Call msaaRoleForRenderer() to get the role. If it is UnknownRole, fall 20 back to m_role. 21 1 22 2009-12-18 Simon Fraser <simon.fraser@apple.com> 2 23 -
trunk/WebCore/accessibility/AccessibilityObject.h
r52233 r52351 170 170 DirectoryRole, 171 171 EditableTextRole, 172 172 ListItemRole, 173 173 174 // ARIA Grouping roles 174 175 LandmarkApplicationRole, -
trunk/WebCore/accessibility/AccessibilityRenderObject.cpp
r52233 r52351 3115 3115 } 3116 3116 3117 static AccessibilityRole msaaRoleForRenderer(const RenderObject* renderer) 3118 { 3119 if (!renderer) 3120 return UnknownRole; 3121 3122 if (renderer->isText()) 3123 return EditableTextRole; 3124 3125 if (renderer->isListItem()) 3126 return ListItemRole; 3127 3128 return UnknownRole; 3129 } 3130 3117 3131 AccessibilityRole AccessibilityRenderObject::roleValueForMSAA() const 3118 3132 { … … 3120 3134 return m_roleForMSAA; 3121 3135 3122 if (m_renderer && m_renderer->isText())3123 m_roleForMSAA = EditableTextRole; 3124 else3136 m_roleForMSAA = msaaRoleForRenderer(m_renderer); 3137 3138 if (m_roleForMSAA == UnknownRole) 3125 3139 m_roleForMSAA = m_role; 3126 3140 -
trunk/WebKit/win/AccessibleBase.cpp
r52350 r52351 566 566 case WebCore::ImageRole: 567 567 return ROLE_SYSTEM_GRAPHIC; 568 case WebCore::ListItemRole: 569 return ROLE_SYSTEM_LISTITEM; 568 570 default: 569 571 // This is the default role for MSAA. -
trunk/WebKit/win/ChangeLog
r52350 r52351 1 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of list items is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32688 6 7 Reviewed by Adam Roben. 8 9 * AccessibleBase.cpp: 10 (MSAARole): 11 Make the WebCore list item role map to the MSAA list item role. 12 1 13 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.