Changeset 52233 in webkit
- Timestamp:
- Dec 16, 2009 9:58:00 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52230 r52233 1 2009-12-16 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of text nodes is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32631 6 <rdar://problem/7369084> 7 8 Reviewed by Alice Liu. 9 10 * platform/win/accessibility/text-role-expected.txt: Added. 11 * platform/win/accessibility/text-role.html: Added. 12 Check that the role of the text node that is the first child of the 13 <a> tag has the "editable text" role. 14 1 15 2009-12-16 Fumitoshi Ukai <ukai@chromium.org> 2 16 -
trunk/WebCore/ChangeLog
r52229 r52233 1 2009-12-16 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of text nodes is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32631 6 <rdar://problem/7369084> 7 8 Reviewed by Alice Liu. 9 10 Test: platform/win/accessibility/text-role.html 11 12 * accessibility/AccessibilityObject.h: 13 (WebCore::): 14 Add a new role to the enum. 15 (WebCore::AccessibilityObject::roleValueForMSAA): 16 Declare a function to return the accessibility role for MSAA; the base 17 implementation returns the old role value. 18 19 * accessibility/AccessibilityRenderObject.cpp: 20 (WebCore::AccessibilityRenderObject::AccessibilityRenderObject): 21 Initialize m_roleForMSAA. 22 (WebCore::AccessibilityRenderObject::roleValueForMSAA): 23 If m_roleForMSAA has been set, return it. If the renderer is a 24 RenderText, set the role to EditableTextRole to match IE and Firefox. 25 Otherwise, set the role for MSAA to the old role value. 26 27 * accessibility/AccessibilityRenderObject.h: 28 Add a member to hold the role for MSAA, and declare an override of 29 roleValueForMSAA(). 30 1 31 2009-12-16 Eric Seidel <eric@webkit.org> 2 32 -
trunk/WebCore/accessibility/AccessibilityObject.h
r52159 r52233 169 169 TreeItemRole, 170 170 DirectoryRole, 171 EditableTextRole, 171 172 172 173 // ARIA Grouping roles … … 490 491 virtual String nameForMSAA() const { return String(); } 491 492 virtual String descriptionForMSAA() const { return String(); } 492 493 virtual AccessibilityRole roleValueForMSAA() const { return m_role; } 494 493 495 // Used by an ARIA tree to get all its rows. 494 496 void ariaTreeRows(AccessibilityChildrenVector&); -
trunk/WebCore/accessibility/AccessibilityRenderObject.cpp
r52159 r52233 86 86 , m_ariaRole(UnknownRole) 87 87 , m_childrenDirty(false) 88 , m_roleForMSAA(UnknownRole) 88 89 { 89 90 updateAccessibilityRole(); … … 3114 3115 } 3115 3116 3117 AccessibilityRole AccessibilityRenderObject::roleValueForMSAA() const 3118 { 3119 if (m_roleForMSAA != UnknownRole) 3120 return m_roleForMSAA; 3121 3122 if (m_renderer && m_renderer->isText()) 3123 m_roleForMSAA = EditableTextRole; 3124 else 3125 m_roleForMSAA = m_role; 3126 3127 return m_roleForMSAA; 3128 } 3129 3116 3130 } // namespace WebCore -
trunk/WebCore/accessibility/AccessibilityRenderObject.h
r52159 r52233 249 249 virtual String nameForMSAA() const; 250 250 virtual String descriptionForMSAA() const; 251 virtual AccessibilityRole roleValueForMSAA() const; 251 252 252 253 protected: … … 290 291 291 292 void markChildrenDirty() const { m_childrenDirty = true; } 293 294 mutable AccessibilityRole m_roleForMSAA; 292 295 }; 293 296 -
trunk/WebKit/win/AccessibleBase.cpp
r50354 r52233 544 544 case WebCore::TextAreaRole: 545 545 case WebCore::ListMarkerRole: 546 case WebCore::EditableTextRole: 546 547 return ROLE_SYSTEM_TEXT; 547 548 case WebCore::StaticTextRole: … … 573 574 long AccessibleBase::role() const 574 575 { 575 return MSAARole(m_object->roleValue ());576 return MSAARole(m_object->roleValueForMSAA()); 576 577 } 577 578 -
trunk/WebKit/win/ChangeLog
r52121 r52233 1 2009-12-16 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: Accessibility role of text nodes is wrong 4 5 https://bugs.webkit.org/show_bug.cgi?id=32631 6 <rdar://problem/7369084> 7 8 Reviewed by Alice Liu. 9 10 * AccessibleBase.cpp: 11 (MSAARole): 12 If the role is WebCore::EditableTextRole, return ROLE_SYSTEM_TEXT. 13 (AccessibleBase::role): 14 Call roleValueForMSAA(). 15 1 16 2009-12-14 Brent Fulgham <bfulgham@webkit.org> 2 17
Note: See TracChangeset
for help on using the changeset viewer.