Changeset 148136 in webkit
- Timestamp:
- Apr 10, 2013 1:45:43 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r148131 r148136 1 2013-04-10 Chris Fleizach <cfleizach@apple.com> 2 3 when ARIA button contains a link, label text is ignored (affects main buttons on m.facebook.com) 4 https://bugs.webkit.org/show_bug.cgi?id=113906 5 6 Reviewed by Tim Horton. 7 8 The static-text-role-uses-text-under-element.html relies on similar logic to this bug. 9 10 I realized that it was verifying the wrong thing and if we had looked closely at this layout test 11 we would have caught this regression earlier most likely. 12 13 * accessibility/link-inside-button-accessible-text-expected.txt: Added. 14 * accessibility/link-inside-button-accessible-text.html: Added. 15 * platform/mac/accessibility/static-text-role-uses-text-under-element-expected.txt: 16 * platform/mac/accessibility/static-text-role-uses-text-under-element.html: 17 1 18 2013-04-10 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 19 -
trunk/LayoutTests/platform/mac/accessibility/static-text-role-uses-text-under-element-expected.txt
r137946 r148136 5 5 6 6 7 PASS text.stringValue is 'AXValue: 7 PASS text.stringValue is 'AXValue: Text 1 Text 2 Text 3' 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/platform/mac/accessibility/static-text-role-uses-text-under-element.html
r137946 r148136 27 27 document.getElementById("text1").focus(); 28 28 var text = accessibilityController.focusedElement; 29 shouldBe("text.stringValue", "'AXValue: 29 shouldBe("text.stringValue", "'AXValue: Text 1 Text 2 Text 3'"); 30 30 } 31 31 -
trunk/Source/WebCore/ChangeLog
r148135 r148136 1 2013-04-10 Chris Fleizach <cfleizach@apple.com> 2 3 when ARIA button contains a link, label text is ignored (affects main buttons on m.facebook.com) 4 https://bugs.webkit.org/show_bug.cgi?id=113906 5 6 Reviewed by Tim Horton. 7 8 If an element does not expose any children, then it's safe to include all of its sub children when determining 9 the visible text. 10 The bug is that all elements were ignoring focusable elements (like <a>) when determining visible children text 11 12 Test: accessibility/link-inside-button-accessible-text.html 13 14 * accessibility/AccessibilityNodeObject.cpp: 15 (WebCore::shouldUseAccessiblityObjectInnerText): 16 * accessibility/AccessibilityNodeObject.h: 17 (AccessibilityNodeObject): 18 * accessibility/AccessibilityObject.h: 19 (WebCore::AccessibilityObject::isDescendantOfBarrenParent): 20 (AccessibilityObject): 21 1 22 2013-04-10 Chris Fleizach <cfleizach@apple.com> 2 23 -
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
r147802 r148136 1493 1493 // containers with lots of children. 1494 1494 1495 // If something doesn't expose any children, then we can always take the inner text content. 1496 // This is what we want when someone puts an <a> inside a <button> for example. 1497 if (obj->isDescendantOfBarrenParent()) 1498 return true; 1499 1495 1500 // Skip focusable children, so we don't include the text of links and controls. 1496 1501 if (obj->canSetFocusAttribute()) -
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.h
r145399 r148136 170 170 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const; 171 171 bool hasContentEditableAttributeSet() const; 172 bool isDescendantOfBarrenParent() const;172 virtual bool isDescendantOfBarrenParent() const; 173 173 void alterSliderValue(bool increase); 174 174 void changeValueByStep(bool increase); -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r148033 r148136 554 554 static AccessibilityObject* firstAccessibleObjectFromNode(const Node*); 555 555 void findMatchingObjects(AccessibilitySearchCriteria*, AccessibilityChildrenVector&); 556 556 virtual bool isDescendantOfBarrenParent() const { return false; } 557 557 558 virtual AccessibilityObject* observableObject() const { return 0; } 558 559 virtual void linkedUIElements(AccessibilityChildrenVector&) const { }
Note: See TracChangeset
for help on using the changeset viewer.