Changeset 93565 in webkit
- Timestamp:
- Aug 22, 2011 5:24:30 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r93561 r93565 1 2011-08-22 Alice Boxhall <aboxhall@chromium.org> 2 3 Reviewed by Chris Fleizach. 4 5 aria-labelledby should be used in preference to aria-labeledby 6 https://bugs.webkit.org/show_bug.cgi?id=62351 7 8 * accessibility/aria-labelledby-overrides-aria-labeledby-expected.txt: Added. 9 * accessibility/aria-labelledby-overrides-aria-labeledby.html: Added. 10 1 11 2011-08-22 Adam Barth <abarth@webkit.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r93564 r93565 1 2011-08-22 Alice Boxhall <aboxhall@chromium.org> 2 3 Reviewed by Chris Fleizach. 4 5 aria-labelledby should be used in preference to aria-labeledby 6 https://bugs.webkit.org/show_bug.cgi?id=62351 7 8 Test: accessibility/aria-labelledby-overrides-aria-labeledby.html 9 10 * accessibility/AccessibilityRenderObject.cpp: 11 (WebCore::AccessibilityRenderObject::ariaLabelledByElements): Renamed from ariaLabeledByElements. 12 (WebCore::AccessibilityRenderObject::ariaLabelledByAttribute): Renamed from ariaLabeledByAttribute, 13 and re-ordered to prefer the standard spelling. 14 (WebCore::AccessibilityRenderObject::title): 15 (WebCore::AccessibilityRenderObject::hasTextAlternative): 16 * accessibility/AccessibilityRenderObject.h: 17 1 18 2011-08-22 Nat Duca <nduca@chromium.org> 2 19 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r93272 r93565 1242 1242 } 1243 1243 1244 void AccessibilityRenderObject::ariaLabel edByElements(Vector<Element*>& elements) const1245 { 1246 elementsFromAttribute(elements, aria_label edbyAttr);1244 void AccessibilityRenderObject::ariaLabelledByElements(Vector<Element*>& elements) const 1245 { 1246 elementsFromAttribute(elements, aria_labelledbyAttr); 1247 1247 if (!elements.size()) 1248 elementsFromAttribute(elements, aria_label ledbyAttr);1248 elementsFromAttribute(elements, aria_labeledbyAttr); 1249 1249 } 1250 1250 1251 String AccessibilityRenderObject::ariaLabel edByAttribute() const1251 String AccessibilityRenderObject::ariaLabelledByAttribute() const 1252 1252 { 1253 1253 Vector<Element*> elements; 1254 ariaLabel edByElements(elements);1254 ariaLabelledByElements(elements); 1255 1255 1256 1256 return accessibilityDescriptionForElements(elements); … … 1301 1301 return String(); 1302 1302 1303 1303 1304 const AtomicString& title = getAttribute(titleAttr); 1304 1305 if (!title.isEmpty()) … … 1591 1592 bool AccessibilityRenderObject::hasTextAlternative() const 1592 1593 { 1593 // ARIA: section 2A, bullet #3 says if aria-label edby or aria-label appears, it should1594 // ARIA: section 2A, bullet #3 says if aria-labelledby or aria-label appears, it should 1594 1595 // override the "label" element association. 1595 if (!ariaLabel edByAttribute().isEmpty() || !getAttribute(aria_labelAttr).isEmpty())1596 if (!ariaLabelledByAttribute().isEmpty() || !getAttribute(aria_labelAttr).isEmpty()) 1596 1597 return true; 1597 1598 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.h
r93272 r93565 186 186 virtual VisibleSelection selection() const; 187 187 virtual String stringValue() const; 188 virtual String ariaLabel edByAttribute() const;188 virtual String ariaLabelledByAttribute() const; 189 189 virtual String title() const; 190 190 virtual String ariaDescribedByAttribute() const; … … 267 267 268 268 void setRenderObject(RenderObject* renderer) { m_renderer = renderer; } 269 void ariaLabel edByElements(Vector<Element*>& elements) const;269 void ariaLabelledByElements(Vector<Element*>& elements) const; 270 270 bool needsToUpdateChildren() const { return m_childrenDirty; } 271 271
Note: See TracChangeset
for help on using the changeset viewer.