Changeset 51304 in webkit
- Timestamp:
- Nov 22, 2009 10:21:59 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r51301 r51304 1 2009-11-22 Chris Fleizach <cfleizach@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 ARIA: support aria-flowto 6 https://bugs.webkit.org/show_bug.cgi?id=31762 7 8 * platform/mac/accessibility/aria-flowto-expected.txt: Added. 9 * platform/mac/accessibility/aria-flowto.html: Added. 10 1 11 2009-11-22 Dirk Schulze <krit@webkit.org> 2 12 -
trunk/WebCore/ChangeLog
r51300 r51304 1 2009-11-22 Chris Fleizach <cfleizach@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 ARIA: support aria-flowto 6 https://bugs.webkit.org/show_bug.cgi?id=31762 7 8 Test: platform/mac/accessibility/aria-flowto.html 9 10 * accessibility/AccessibilityObject.h: 11 (WebCore::AccessibilityObject::ariaOwnsElements): 12 (WebCore::AccessibilityObject::supportsARIAFlowTo): 13 (WebCore::AccessibilityObject::ariaFlowToElements): 14 * accessibility/AccessibilityRenderObject.cpp: 15 (WebCore::AccessibilityRenderObject::linkedUIElements): 16 (WebCore::AccessibilityRenderObject::supportsARIAFlowTo): 17 (WebCore::AccessibilityRenderObject::ariaFlowToElements): 18 * accessibility/AccessibilityRenderObject.h: 19 * html/HTMLAttributeNames.in: 20 1 21 2009-11-22 Nikolas Zimmermann <nzimmermann@rim.com> 2 22 -
trunk/WebCore/accessibility/AccessibilityObject.h
r51276 r51304 328 328 static bool isARIAInput(AccessibilityRole); 329 329 virtual bool supportsARIAOwns() const { return false; } 330 virtual void ariaOwnsElements(AccessibilityChildrenVector&) const { }; 330 virtual void ariaOwnsElements(AccessibilityChildrenVector&) const { } 331 virtual bool supportsARIAFlowTo() const { return false; } 332 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } 331 333 332 334 virtual AccessibilityObject* doAccessibilityHitTest(const IntPoint&) const { return 0; } -
trunk/WebCore/accessibility/AccessibilityRenderObject.cpp
r51276 r51304 1264 1264 void AccessibilityRenderObject::linkedUIElements(AccessibilityChildrenVector& linkedUIElements) const 1265 1265 { 1266 ariaFlowToElements(linkedUIElements); 1267 1266 1268 if (isAnchor()) { 1267 1269 AccessibilityObject* linkedAXElement = internalLinkElement(); … … 1282 1284 1283 1285 return false; 1286 } 1287 1288 bool AccessibilityRenderObject::supportsARIAFlowTo() const 1289 { 1290 return !getAttribute(aria_flowtoAttr).string().isEmpty(); 1291 } 1292 1293 void AccessibilityRenderObject::ariaFlowToElements(AccessibilityChildrenVector& flowTo) const 1294 { 1295 Vector<Element*> elements; 1296 elementsFromAttribute(elements, aria_flowtoAttr); 1297 1298 AXObjectCache* cache = axObjectCache(); 1299 unsigned count = elements.size(); 1300 for (unsigned k = 0; k < count; ++k) { 1301 Element* element = elements[k]; 1302 AccessibilityObject* flowToElement = cache->getOrCreate(element->renderer()); 1303 if (flowToElement) 1304 flowTo.append(flowToElement); 1305 } 1306 1284 1307 } 1285 1308 -
trunk/WebCore/accessibility/AccessibilityRenderObject.h
r51276 r51304 220 220 virtual IntRect boundsForVisiblePositionRange(const VisiblePositionRange&) const; 221 221 virtual void setSelectedVisiblePositionRange(const VisiblePositionRange&) const; 222 222 virtual bool supportsARIAFlowTo() const; 223 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const; 224 223 225 virtual VisiblePosition visiblePositionForPoint(const IntPoint&) const; 224 226 virtual VisiblePosition visiblePositionForIndex(unsigned indexValue, bool lastIndexOK) const; -
trunk/WebCore/html/HTMLAttributeNames.in
r51276 r51304 19 19 aria-disabled 20 20 aria-expanded 21 aria-flowto 21 22 aria-hidden 22 23 aria-label -
trunk/WebKitTools/ChangeLog
r51299 r51304 1 2009-11-22 Chris Fleizach <cfleizach@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 ARIA: support aria-flowto 6 https://bugs.webkit.org/show_bug.cgi?id=31762 7 8 * DumpRenderTree/AccessibilityUIElement.cpp: 9 (ariaFlowToElementAtIndexCallback): 10 (AccessibilityUIElement::getJSClass): 11 * DumpRenderTree/AccessibilityUIElement.h: 12 * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: 13 (AccessibilityUIElement::ariaFlowToElementAtIndex): 14 * DumpRenderTree/mac/AccessibilityUIElementMac.mm: 15 (AccessibilityUIElement::ariaFlowToElementAtIndex): 16 * DumpRenderTree/win/AccessibilityUIElementWin.cpp: 17 (AccessibilityUIElement::ariaFlowToElementAtIndex): 18 1 19 2009-11-22 Antonio Gomes <tonikitoo@webkit.org> 2 20 -
trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp
r51276 r51304 178 178 179 179 return AccessibilityUIElement::makeJSAccessibilityUIElement(context, toAXElement(thisObject)->ariaOwnsElementAtIndex(indexNumber)); 180 } 181 182 static JSValueRef ariaFlowToElementAtIndexCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 183 { 184 int indexNumber = 0; 185 if (argumentCount == 1) 186 indexNumber = JSValueToNumber(context, arguments[0], exception); 187 188 return AccessibilityUIElement::makeJSAccessibilityUIElement(context, toAXElement(thisObject)->ariaFlowToElementAtIndex(indexNumber)); 180 189 } 181 190 … … 543 552 { "disclosedRowAtIndex", disclosedRowAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 544 553 { "ariaOwnsElementAtIndex", ariaOwnsElementAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 554 { "ariaFlowToElementAtIndex", ariaFlowToElementAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 545 555 { "selectedRowAtIndex", selectedRowAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 546 556 { "isEqual", isEqualCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h
r51276 r51304 134 134 // ARIA specific 135 135 AccessibilityUIElement ariaOwnsElementAtIndex(unsigned); 136 AccessibilityUIElement ariaFlowToElementAtIndex(unsigned); 136 137 137 138 // Parameterized attributes -
trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp
r51276 r51304 467 467 } 468 468 469 AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index) 470 { 471 return 0; 472 } 473 469 474 AccessibilityUIElement AccessibilityUIElement::selectedRowAtIndex(unsigned index) 470 475 { -
trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm
r51276 r51304 249 249 } 250 250 251 AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index) 252 { 253 NSArray* objects = [m_element accessibilityAttributeValue:NSAccessibilityLinkedUIElementsAttribute]; 254 if (index < [objects count]) 255 return [objects objectAtIndex:index]; 256 257 return 0; 258 } 259 251 260 AccessibilityUIElement AccessibilityUIElement::disclosedRowAtIndex(unsigned index) 252 261 { -
trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp
r51276 r51304 416 416 } 417 417 418 AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index) 419 { 420 return 0; 421 } 422 418 423 AccessibilityUIElement AccessibilityUIElement::selectedRowAtIndex(unsigned index) 419 424 {
Note: See TracChangeset
for help on using the changeset viewer.