<!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>[185558] 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/185558">185558</a></dd>
<dt>Author</dt> <dd>cfleizach@apple.com</dd>
<dt>Date</dt> <dd>2015-06-15 11:39:20 -0700 (Mon, 15 Jun 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>AX: no accessibility support for details element
https://bugs.webkit.org/show_bug.cgi?id=131111

Reviewed by Darin Adler.

Source/WebCore:

Add accessibility support for Mac for details element by:
   1) Returning new subroles for &lt;details&gt; and &lt;summary&gt;
   2) Exposing isExpanded property for &lt;details&gt; element.

Test: platform/mac/accessibility/details-summary.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::supportsARIAPressed):
(WebCore::AccessibilityObject::supportsExpanded):
(WebCore::AccessibilityObject::isExpanded):
(WebCore::AccessibilityObject::supportsARIAExpanded): Deleted.
* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::canvasHasFallbackContent):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilitySupportsARIAExpanded]):
(-[WebAccessibilityObjectWrapper accessibilityIsExpanded]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
(createAccessibilityRoleMap):
(-[WebAccessibilityObjectWrapper subrole]):
* html/HTMLDetailsElement.h:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):

LayoutTests:

* platform/mac/accessibility/details-summary-expected.txt: Added.
* platform/mac/accessibility/details-summary.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjecth">trunk/Source/WebCore/accessibility/AccessibilityObject.h</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm">trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm">trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLDetailsElementh">trunk/Source/WebCore/html/HTMLDetailsElement.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformmacaccessibilitydetailssummaryexpectedtxt">trunk/LayoutTests/platform/mac/accessibility/details-summary-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacaccessibilitydetailssummaryhtml">trunk/LayoutTests/platform/mac/accessibility/details-summary.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/LayoutTests/ChangeLog        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2015-06-15  Chris Fleizach  &lt;cfleizach@apple.com&gt;
+
+        AX: no accessibility support for details element
+        https://bugs.webkit.org/show_bug.cgi?id=131111
+
+        Reviewed by Darin Adler.
+
+        * platform/mac/accessibility/details-summary-expected.txt: Added.
+        * platform/mac/accessibility/details-summary.html: Added.
+
</ins><span class="cx"> 2015-06-13  Chris Fleizach  &lt;cfleizach@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: WebKit exposes all Ruby Text as Unknown (Japanese EPUB accessibility blocker)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacaccessibilitydetailssummaryexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/accessibility/details-summary-expected.txt (0 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/accessibility/details-summary-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/details-summary-expected.txt        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Some open info
+Details about the open topic.
+
+Some open info
+This tests some basic attributes about the details element.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS details1.role is 'AXRole: AXGroup'
+PASS details1.subrole is 'AXSubrole: AXDetails'
+PASS details1.isExpanded is true
+PASS details1.childAtIndex(0).role is 'AXRole: AXGroup'
+PASS details1.childAtIndex(0).subrole is 'AXSubrole: AXSummary'
+PASS details2.subrole is 'AXSubrole: AXDetails'
+PASS details2.isExpanded is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacaccessibilitydetailssummaryhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/accessibility/details-summary.html (0 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/accessibility/details-summary.html                                (rev 0)
+++ trunk/LayoutTests/platform/mac/accessibility/details-summary.html        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;details open id=&quot;details1&quot;&gt;
+  &lt;summary&gt;Some open info&lt;/summary&gt;
+  &lt;p&gt;Details about the open topic.&lt;/p&gt;
+&lt;/details&gt;
+
+&lt;details id=&quot;details2&quot;&gt;
+  &lt;summary&gt;Some open info&lt;/summary&gt;
+  &lt;p&gt;Details about the open topic.&lt;/p&gt;
+&lt;/details&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 some basic attributes about the details element.&quot;);
+
+    if (window.accessibilityController) {
+
+        var details1 = accessibilityController.accessibleElementById(&quot;details1&quot;);
+        shouldBe(&quot;details1.role&quot;, &quot;'AXRole: AXGroup'&quot;);
+        shouldBe(&quot;details1.subrole&quot;, &quot;'AXSubrole: AXDetails'&quot;);
+        shouldBeTrue(&quot;details1.isExpanded&quot;);
+        shouldBe(&quot;details1.childAtIndex(0).role&quot;, &quot;'AXRole: AXGroup'&quot;);
+        shouldBe(&quot;details1.childAtIndex(0).subrole&quot;, &quot;'AXSubrole: AXSummary'&quot;);
+
+        var details2 = accessibilityController.accessibleElementById(&quot;details2&quot;);
+        shouldBe(&quot;details2.subrole&quot;, &quot;'AXSubrole: AXDetails'&quot;);
+        shouldBeFalse(&quot;details2.isExpanded&quot;);
+    }
+
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/ChangeLog        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -1,3 +1,37 @@
</span><ins>+2015-06-15  Chris Fleizach  &lt;cfleizach@apple.com&gt;
+
+        AX: no accessibility support for details element
+        https://bugs.webkit.org/show_bug.cgi?id=131111
+
+        Reviewed by Darin Adler.
+
+        Add accessibility support for Mac for details element by:
+           1) Returning new subroles for &lt;details&gt; and &lt;summary&gt;
+           2) Exposing isExpanded property for &lt;details&gt; element.
+
+        Test: platform/mac/accessibility/details-summary.html
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::supportsARIAPressed):
+        (WebCore::AccessibilityObject::supportsExpanded):
+        (WebCore::AccessibilityObject::isExpanded):
+        (WebCore::AccessibilityObject::supportsARIAExpanded): Deleted.
+        * accessibility/AccessibilityObject.h:
+        (WebCore::AccessibilityObject::canvasHasFallbackContent):
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
+        (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
+        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
+        (-[WebAccessibilityObjectWrapper accessibilitySupportsARIAExpanded]):
+        (-[WebAccessibilityObjectWrapper accessibilityIsExpanded]):
+        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
+        (-[WebAccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
+        (createAccessibilityRoleMap):
+        (-[WebAccessibilityObjectWrapper subrole]):
+        * html/HTMLDetailsElement.h:
+        * inspector/InspectorDOMAgent.cpp:
+        (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
+
</ins><span class="cx"> 2015-06-15  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         [Content Extensions] Limit number of rules.
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -41,6 +41,7 @@
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><span class="cx"> #include &quot;FrameLoader.h&quot;
</span><span class="cx"> #include &quot;FrameSelection.h&quot;
</span><ins>+#include &quot;HTMLDetailsElement.h&quot;
</ins><span class="cx"> #include &quot;HTMLInputElement.h&quot;
</span><span class="cx"> #include &quot;HTMLNames.h&quot;
</span><span class="cx"> #include &quot;HTMLParserIdioms.h&quot;
</span><span class="lines">@@ -2219,7 +2220,7 @@
</span><span class="cx">     return equalIgnoringCase(expanded, &quot;true&quot;) || equalIgnoringCase(expanded, &quot;false&quot;);
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-bool AccessibilityObject::supportsARIAExpanded() const
</del><ins>+bool AccessibilityObject::supportsExpanded() const
</ins><span class="cx"> {
</span><span class="cx">     // Undefined values should not result in this attribute being exposed to ATs according to ARIA.
</span><span class="cx">     const AtomicString&amp; expanded = getAttribute(aria_expandedAttr);
</span><span class="lines">@@ -2228,6 +2229,7 @@
</span><span class="cx">     switch (roleValue()) {
</span><span class="cx">     case ComboBoxRole:
</span><span class="cx">     case DisclosureTriangleRole:
</span><ins>+    case DetailsRole:
</ins><span class="cx">         return true;
</span><span class="cx">     default:
</span><span class="cx">         return false;
</span><span class="lines">@@ -2239,6 +2241,9 @@
</span><span class="cx">     if (equalIgnoringCase(getAttribute(aria_expandedAttr), &quot;true&quot;))
</span><span class="cx">         return true;
</span><span class="cx">     
</span><ins>+    if (is&lt;HTMLDetailsElement&gt;(node()))
+        return downcast&lt;HTMLDetailsElement&gt;(node())-&gt;isOpen();
+    
</ins><span class="cx">     return false;  
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.h (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.h        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.h        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -118,6 +118,7 @@
</span><span class="cx">     DescriptionListRole,
</span><span class="cx">     DescriptionListTermRole,
</span><span class="cx">     DescriptionListDetailRole,
</span><ins>+    DetailsRole,
</ins><span class="cx">     DirectoryRole,
</span><span class="cx">     DisclosureTriangleRole,
</span><span class="cx">     DivRole,
</span><span class="lines">@@ -195,6 +196,7 @@
</span><span class="cx">     SplitGroupRole,
</span><span class="cx">     SplitterRole,
</span><span class="cx">     StaticTextRole,
</span><ins>+    SummaryRole,
</ins><span class="cx">     SwitchRole,
</span><span class="cx">     SystemWideRole,
</span><span class="cx">     SVGRootRole,
</span><span class="lines">@@ -612,7 +614,7 @@
</span><span class="cx">     bool ariaIsMultiline() const;
</span><span class="cx">     String invalidStatus() const;
</span><span class="cx">     bool supportsARIAPressed() const;
</span><del>-    bool supportsARIAExpanded() const;
</del><ins>+    bool supportsExpanded() const;
</ins><span class="cx">     bool supportsChecked() const;
</span><span class="cx">     AccessibilitySortDirection sortDirection() const;
</span><span class="cx">     virtual bool canvasHasFallbackContent() const { return false; }
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -1256,6 +1256,7 @@
</span><span class="cx">     case AudioRole:
</span><span class="cx">     case DescriptionListTermRole:
</span><span class="cx">     case DescriptionListDetailRole:
</span><ins>+    case DetailsRole:
</ins><span class="cx">     case DocumentArticleRole:
</span><span class="cx">     case DocumentRegionRole:
</span><span class="cx">     case ListItemRole:
</span><span class="lines">@@ -2651,6 +2652,11 @@
</span><span class="cx">     if (node &amp;&amp; node-&gt;hasTagName(preTag))
</span><span class="cx">         return PreRole;
</span><span class="cx"> 
</span><ins>+    if (is&lt;HTMLDetailsElement&gt;(node))
+        return DetailsRole;
+    if (is&lt;HTMLSummaryElement&gt;(node))
+        return SummaryRole;
+
</ins><span class="cx"> #if ENABLE(VIDEO)
</span><span class="cx">     if (is&lt;HTMLVideoElement&gt;(node))
</span><span class="cx">         return VideoRole;
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -2326,7 +2326,7 @@
</span><span class="cx">     if (![self _prepareAccessibilityCall])
</span><span class="cx">         return NO;
</span><span class="cx">     
</span><del>-    return m_object-&gt;supportsARIAExpanded();
</del><ins>+    return m_object-&gt;supportsExpanded();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)accessibilityIsExpanded
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -1214,7 +1214,7 @@
</span><span class="cx">     if (m_object-&gt;isToggleButton())
</span><span class="cx">         [additional addObject:NSAccessibilityValueAttribute];
</span><span class="cx">     
</span><del>-    if (m_object-&gt;supportsARIAExpanded())
</del><ins>+    if (m_object-&gt;supportsExpanded())
</ins><span class="cx">         [additional addObject:NSAccessibilityExpandedAttribute];
</span><span class="cx">     
</span><span class="cx">     if (m_object-&gt;isScrollbar())
</span><span class="lines">@@ -1985,6 +1985,8 @@
</span><span class="cx">         { RubyInlineRole, NSAccessibilityGroupRole },
</span><span class="cx">         { RubyRunRole, NSAccessibilityGroupRole },
</span><span class="cx">         { RubyTextRole, NSAccessibilityGroupRole },
</span><ins>+        { DetailsRole, NSAccessibilityGroupRole },
+        { SummaryRole, NSAccessibilityGroupRole },
</ins><span class="cx">     };
</span><span class="cx">     AccessibilityRoleMap&amp; roleMap = *new AccessibilityRoleMap;
</span><span class="cx">     
</span><span class="lines">@@ -2161,6 +2163,10 @@
</span><span class="cx">         return @&quot;AXVideo&quot;;
</span><span class="cx">     if (role == AudioRole)
</span><span class="cx">         return @&quot;AXAudio&quot;;
</span><ins>+    if (role == DetailsRole)
+        return @&quot;AXDetails&quot;;
+    if (role == SummaryRole)
+        return @&quot;AXSummary&quot;;
</ins><span class="cx">     
</span><span class="cx">     if (m_object-&gt;isMediaTimeline())
</span><span class="cx">         return NSAccessibilityTimelineSubrole;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLDetailsElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLDetailsElement.h (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLDetailsElement.h        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/html/HTMLDetailsElement.h        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -31,7 +31,8 @@
</span><span class="cx">     void toggleOpen();
</span><span class="cx"> 
</span><span class="cx">     const Element* findMainSummary() const;
</span><del>-
</del><ins>+    bool isOpen() const { return m_isOpen; }
+    
</ins><span class="cx"> private:
</span><span class="cx">     HTMLDetailsElement(const QualifiedName&amp;, Document&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (185557 => 185558)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2015-06-15 18:08:11 UTC (rev 185557)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2015-06-15 18:39:20 UTC (rev 185558)
</span><span class="lines">@@ -1510,7 +1510,7 @@
</span><span class="cx">             disabled = !axObject-&gt;isEnabled(); 
</span><span class="cx">             exists = true;
</span><span class="cx">             
</span><del>-            supportsExpanded = axObject-&gt;supportsARIAExpanded();
</del><ins>+            supportsExpanded = axObject-&gt;supportsExpanded();
</ins><span class="cx">             if (supportsExpanded)
</span><span class="cx">                 expanded = axObject-&gt;isExpanded();
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>