<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[51304] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/51304">51304</a></dd>
<dt>Author</dt> <dd>eric@webkit.org</dd>
<dt>Date</dt> <dd>2009-11-22 22:21:59 -0800 (Sun, 22 Nov 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        * platform/mac/accessibility/aria-flowto-expected.txt: Added.
        * platform/mac/accessibility/aria-flowto.html: Added.
2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        Test: platform/mac/accessibility/aria-flowto.html

        * accessibility/AccessibilityObject.h:
        (WebCore::AccessibilityObject::ariaOwnsElements):
        (WebCore::AccessibilityObject::supportsARIAFlowTo):
        (WebCore::AccessibilityObject::ariaFlowToElements):
        * accessibility/AccessibilityRenderObject.cpp:
        (WebCore::AccessibilityRenderObject::linkedUIElements):
        (WebCore::AccessibilityRenderObject::supportsARIAFlowTo):
        (WebCore::AccessibilityRenderObject::ariaFlowToElements):
        * accessibility/AccessibilityRenderObject.h:
        * html/HTMLAttributeNames.in:
2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        * DumpRenderTree/AccessibilityUIElement.cpp:
        (ariaFlowToElementAtIndexCallback):
        (AccessibilityUIElement::getJSClass):
        * DumpRenderTree/AccessibilityUIElement.h:
        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):
        * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):
        * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCoreaccessibilityAccessibilityObjecth">trunk/WebCore/accessibility/AccessibilityObject.h</a></li>
<li><a href="#trunkWebCoreaccessibilityAccessibilityRenderObjectcpp">trunk/WebCore/accessibility/AccessibilityRenderObject.cpp</a></li>
<li><a href="#trunkWebCoreaccessibilityAccessibilityRenderObjecth">trunk/WebCore/accessibility/AccessibilityRenderObject.h</a></li>
<li><a href="#trunkWebCorehtmlHTMLAttributeNamesin">trunk/WebCore/html/HTMLAttributeNames.in</a></li>
<li><a href="#trunkWebKitToolsChangeLog">trunk/WebKitTools/ChangeLog</a></li>
<li><a href="#trunkWebKitToolsDumpRenderTreeAccessibilityUIElementcpp">trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp</a></li>
<li><a href="#trunkWebKitToolsDumpRenderTreeAccessibilityUIElementh">trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h</a></li>
<li><a href="#trunkWebKitToolsDumpRenderTreegtkAccessibilityUIElementGtkcpp">trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp</a></li>
<li><a href="#trunkWebKitToolsDumpRenderTreemacAccessibilityUIElementMacmm">trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm</a></li>
<li><a href="#trunkWebKitToolsDumpRenderTreewinAccessibilityUIElementWincpp">trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformmacaccessibilityariaflowtoexpectedtxt">trunk/LayoutTests/platform/mac/accessibility/aria-flowto-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacaccessibilityariaflowtohtml">trunk/LayoutTests/platform/mac/accessibility/aria-flowto.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/LayoutTests/ChangeLog        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;
+
+        Reviewed by Oliver Hunt.
+
+        ARIA: support aria-flowto
+        https://bugs.webkit.org/show_bug.cgi?id=31762
+
+        * platform/mac/accessibility/aria-flowto-expected.txt: Added.
+        * platform/mac/accessibility/aria-flowto.html: Added.
+
</ins><span class="cx"> 2009-11-22  Dirk Schulze  &lt;krit@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Nikolas Zimmermann.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacaccessibilityariaflowtoexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/accessibility/aria-flowto-expected.txt (0 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/accessibility/aria-flowto-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-flowto-expected.txt        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+Item 1
+Item 2
+Item 3
+BUTTON
+RADIO BUTTON
+This tests that aria-flowto correctly identifies the right elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS item.ariaFlowToElementAtIndex(0).role is 'AXRole: AXButton'
+PASS item.ariaFlowToElementAtIndex(0).title is 'AXTitle: BUTTON'
+PASS item.ariaFlowToElementAtIndex(1).role is 'AXRole: AXRadioButton'
+PASS item.ariaFlowToElementAtIndex(1).title is 'AXTitle: RADIO BUTTON'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacaccessibilityariaflowtohtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/accessibility/aria-flowto.html (0 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/accessibility/aria-flowto.html                                (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-flowto.html        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;link rel=&quot;stylesheet&quot; href=&quot;../../../fast/js/resources/js-test-style.css&quot;&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../fast/js/resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div tabindex=0 id=&quot;item1&quot; role=&quot;img&quot; aria-flowto=&quot;extra extra2&quot;&gt;Item 1&lt;/div&gt;
+&lt;div&gt;Item 2&lt;/div&gt;
+&lt;div&gt;Item 3&lt;/div&gt;
+
+&lt;div id=&quot;extra&quot; role=&quot;button&quot;&gt;BUTTON&lt;/div&gt;
+&lt;div id=&quot;extra2&quot; role=&quot;radio&quot;&gt;RADIO BUTTON&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that aria-flowto correctly identifies the right elements.&quot;);
+
+    if (window.accessibilityController) {
+
+          var item = document.getElementById(&quot;item1&quot;);
+          item.focus();
+          item = accessibilityController.focusedElement;
+          shouldBe(&quot;item.ariaFlowToElementAtIndex(0).role&quot;, &quot;'AXRole: AXButton'&quot;);
+          shouldBe(&quot;item.ariaFlowToElementAtIndex(0).title&quot;, &quot;'AXTitle: BUTTON'&quot;);
+          shouldBe(&quot;item.ariaFlowToElementAtIndex(1).role&quot;, &quot;'AXRole: AXRadioButton'&quot;);
+          shouldBe(&quot;item.ariaFlowToElementAtIndex(1).title&quot;, &quot;'AXTitle: RADIO BUTTON'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../fast/js/resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebCore/ChangeLog        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;
+
+        Reviewed by Oliver Hunt.
+
+        ARIA: support aria-flowto
+        https://bugs.webkit.org/show_bug.cgi?id=31762
+
+        Test: platform/mac/accessibility/aria-flowto.html
+
+        * accessibility/AccessibilityObject.h:
+        (WebCore::AccessibilityObject::ariaOwnsElements):
+        (WebCore::AccessibilityObject::supportsARIAFlowTo):
+        (WebCore::AccessibilityObject::ariaFlowToElements):
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::linkedUIElements):
+        (WebCore::AccessibilityRenderObject::supportsARIAFlowTo):
+        (WebCore::AccessibilityRenderObject::ariaFlowToElements):
+        * accessibility/AccessibilityRenderObject.h:
+        * html/HTMLAttributeNames.in:
+
</ins><span class="cx"> 2009-11-22  Nikolas Zimmermann  &lt;nzimmermann@rim.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Not reviewed. Build fix for WML enabled builds.
</span></span></pre></div>
<a id="trunkWebCoreaccessibilityAccessibilityObjecth"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/accessibility/AccessibilityObject.h (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/accessibility/AccessibilityObject.h        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebCore/accessibility/AccessibilityObject.h        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -327,7 +327,9 @@
</span><span class="cx">     static bool isARIAControl(AccessibilityRole);
</span><span class="cx">     static bool isARIAInput(AccessibilityRole);
</span><span class="cx">     virtual bool supportsARIAOwns() const { return false; }
</span><del>-    virtual void ariaOwnsElements(AccessibilityChildrenVector&amp;) const { };
</del><ins>+    virtual void ariaOwnsElements(AccessibilityChildrenVector&amp;) const { }
+    virtual bool supportsARIAFlowTo() const { return false; }
+    virtual void ariaFlowToElements(AccessibilityChildrenVector&amp;) const { }
</ins><span class="cx">     
</span><span class="cx">     virtual AccessibilityObject* doAccessibilityHitTest(const IntPoint&amp;) const { return 0; }
</span><span class="cx">     virtual AccessibilityObject* focusedUIElement() const { return 0; }
</span></span></pre></div>
<a id="trunkWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/accessibility/AccessibilityRenderObject.cpp (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/accessibility/AccessibilityRenderObject.cpp        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebCore/accessibility/AccessibilityRenderObject.cpp        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -1263,6 +1263,8 @@
</span><span class="cx"> // or an internal anchor connection
</span><span class="cx"> void AccessibilityRenderObject::linkedUIElements(AccessibilityChildrenVector&amp; linkedUIElements) const
</span><span class="cx"> {
</span><ins>+    ariaFlowToElements(linkedUIElements);
+
</ins><span class="cx">     if (isAnchor()) {
</span><span class="cx">         AccessibilityObject* linkedAXElement = internalLinkElement();
</span><span class="cx">         if (linkedAXElement)
</span><span class="lines">@@ -1283,6 +1285,27 @@
</span><span class="cx">     return false;   
</span><span class="cx"> }
</span><span class="cx">     
</span><ins>+bool AccessibilityRenderObject::supportsARIAFlowTo() const
+{
+    return !getAttribute(aria_flowtoAttr).string().isEmpty();
+}
+    
+void AccessibilityRenderObject::ariaFlowToElements(AccessibilityChildrenVector&amp; flowTo) const
+{
+    Vector&lt;Element*&gt; elements;
+    elementsFromAttribute(elements, aria_flowtoAttr);
+    
+    AXObjectCache* cache = axObjectCache();
+    unsigned count = elements.size();
+    for (unsigned k = 0; k &lt; count; ++k) {
+        Element* element = elements[k];
+        AccessibilityObject* flowToElement = cache-&gt;getOrCreate(element-&gt;renderer());
+        if (flowToElement)
+            flowTo.append(flowToElement);
+    }
+        
+}
+    
</ins><span class="cx"> bool AccessibilityRenderObject::exposesTitleUIElement() const
</span><span class="cx"> {
</span><span class="cx">     if (!isControl())
</span></span></pre></div>
<a id="trunkWebCoreaccessibilityAccessibilityRenderObjecth"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/accessibility/AccessibilityRenderObject.h (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/accessibility/AccessibilityRenderObject.h        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebCore/accessibility/AccessibilityRenderObject.h        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -219,7 +219,9 @@
</span><span class="cx">     virtual VisiblePositionRange visiblePositionRangeForLine(unsigned) const;
</span><span class="cx">     virtual IntRect boundsForVisiblePositionRange(const VisiblePositionRange&amp;) const;
</span><span class="cx">     virtual void setSelectedVisiblePositionRange(const VisiblePositionRange&amp;) const;
</span><del>-    
</del><ins>+    virtual bool supportsARIAFlowTo() const;
+    virtual void ariaFlowToElements(AccessibilityChildrenVector&amp;) const;
+
</ins><span class="cx">     virtual VisiblePosition visiblePositionForPoint(const IntPoint&amp;) const;
</span><span class="cx">     virtual VisiblePosition visiblePositionForIndex(unsigned indexValue, bool lastIndexOK) const;    
</span><span class="cx">     virtual int index(const VisiblePosition&amp;) const;
</span></span></pre></div>
<a id="trunkWebCorehtmlHTMLAttributeNamesin"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/html/HTMLAttributeNames.in (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/html/HTMLAttributeNames.in        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebCore/html/HTMLAttributeNames.in        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -18,6 +18,7 @@
</span><span class="cx"> aria-describedby
</span><span class="cx"> aria-disabled
</span><span class="cx"> aria-expanded
</span><ins>+aria-flowto
</ins><span class="cx"> aria-hidden
</span><span class="cx"> aria-label
</span><span class="cx"> aria-labeledby
</span></span></pre></div>
<a id="trunkWebKitToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/ChangeLog (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/ChangeLog        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/ChangeLog        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2009-11-22  Chris Fleizach  &lt;cfleizach@apple.com&gt;
+
+        Reviewed by Oliver Hunt.
+
+        ARIA: support aria-flowto
+        https://bugs.webkit.org/show_bug.cgi?id=31762
+
+        * DumpRenderTree/AccessibilityUIElement.cpp:
+        (ariaFlowToElementAtIndexCallback):
+        (AccessibilityUIElement::getJSClass):
+        * DumpRenderTree/AccessibilityUIElement.h:
+        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
+        (AccessibilityUIElement::ariaFlowToElementAtIndex):
+        * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
+        (AccessibilityUIElement::ariaFlowToElementAtIndex):
+        * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
+        (AccessibilityUIElement::ariaFlowToElementAtIndex):
+
</ins><span class="cx"> 2009-11-22  Antonio Gomes  &lt;tonikitoo@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Kenneth Christiansen.
</span></span></pre></div>
<a id="trunkWebKitToolsDumpRenderTreeAccessibilityUIElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -179,6 +179,15 @@
</span><span class="cx">     return AccessibilityUIElement::makeJSAccessibilityUIElement(context, toAXElement(thisObject)-&gt;ariaOwnsElementAtIndex(indexNumber));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static JSValueRef ariaFlowToElementAtIndexCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
+{
+    int indexNumber = 0;
+    if (argumentCount == 1)
+        indexNumber = JSValueToNumber(context, arguments[0], exception);
+    
+    return AccessibilityUIElement::makeJSAccessibilityUIElement(context, toAXElement(thisObject)-&gt;ariaFlowToElementAtIndex(indexNumber));
+}
+
</ins><span class="cx"> static JSValueRef selectedRowAtIndexCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
</span><span class="cx"> {
</span><span class="cx">     int indexNumber = 0;
</span><span class="lines">@@ -542,6 +551,7 @@
</span><span class="cx">         { &quot;showMenu&quot;, showMenuCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { &quot;disclosedRowAtIndex&quot;, disclosedRowAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { &quot;ariaOwnsElementAtIndex&quot;, ariaOwnsElementAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><ins>+        { &quot;ariaFlowToElementAtIndex&quot;, ariaFlowToElementAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</ins><span class="cx">         { &quot;selectedRowAtIndex&quot;, selectedRowAtIndexCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { &quot;isEqual&quot;, isEqualCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { 0, 0, 0 }
</span></span></pre></div>
<a id="trunkWebKitToolsDumpRenderTreeAccessibilityUIElementh"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -133,6 +133,7 @@
</span><span class="cx"> 
</span><span class="cx">     // ARIA specific
</span><span class="cx">     AccessibilityUIElement ariaOwnsElementAtIndex(unsigned);
</span><ins>+    AccessibilityUIElement ariaFlowToElementAtIndex(unsigned);
</ins><span class="cx"> 
</span><span class="cx">     // Parameterized attributes
</span><span class="cx">     int lineForIndex(int);
</span></span></pre></div>
<a id="trunkWebKitToolsDumpRenderTreegtkAccessibilityUIElementGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -466,6 +466,11 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
+{
+    return 0;
+}
+
</ins><span class="cx"> AccessibilityUIElement AccessibilityUIElement::selectedRowAtIndex(unsigned index)
</span><span class="cx"> {
</span><span class="cx">     return 0;
</span></span></pre></div>
<a id="trunkWebKitToolsDumpRenderTreemacAccessibilityUIElementMacmm"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -248,6 +248,15 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
+{
+    NSArray* objects = [m_element accessibilityAttributeValue:NSAccessibilityLinkedUIElementsAttribute];
+    if (index &lt; [objects count])
+        return [objects objectAtIndex:index];
+    
+    return 0;
+}
+
</ins><span class="cx"> AccessibilityUIElement AccessibilityUIElement::disclosedRowAtIndex(unsigned index)
</span><span class="cx"> {
</span><span class="cx">     NSArray* rows = [m_element accessibilityAttributeValue:NSAccessibilityDisclosedRowsAttribute];
</span></span></pre></div>
<a id="trunkWebKitToolsDumpRenderTreewinAccessibilityUIElementWincpp"></a>
<div class="modfile"><h4>Modified: trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp (51303 => 51304)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp        2009-11-23 04:27:49 UTC (rev 51303)
+++ trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp        2009-11-23 06:21:59 UTC (rev 51304)
</span><span class="lines">@@ -415,6 +415,11 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
+{
+    return 0;
+}
+
</ins><span class="cx"> AccessibilityUIElement AccessibilityUIElement::selectedRowAtIndex(unsigned index)
</span><span class="cx"> {
</span><span class="cx">     return 0;
</span></span></pre>
</div>
</div>

</body>
</html>