<!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>[165430] 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/165430">165430</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-03-10 21:52:02 -0700 (Mon, 10 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: AXI: Expose checked/disabled/expanded/pressed/readonly/selected
https://bugs.webkit.org/show_bug.cgi?id=129781

Patch by James Craig &lt;jcraig@apple.com&gt; on 2014-03-10
Reviewed by Joseph Pecoraro.

Enabling several more properties to be exposed in the Accessibility Node Inspector.

Source/WebCore:

Updated Tests: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::supportsChecked):
* accessibility/AccessibilityObject.h:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
* inspector/protocol/DOM.json:

Source/WebInspectorUI:

Updated Tests: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

* Localizations/en.lproj/localizedStrings.js:
* UserInterface/Models/DOMNode.js:
* UserInterface/Protocol/InspectorWebBackendCommands.js:
* UserInterface/Views/DOMNodeDetailsSidebarPanel.js:

LayoutTests:

* inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
* inspector-protocol/dom/getAccessibilityPropertiesForNode.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodeexpectedtxt">trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodehtml">trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html</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="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorprotocolDOMjson">trunk/Source/WebCore/inspector/protocol/DOM.json</a></li>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsDOMNodejs">trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceProtocolInspectorWebBackendCommandsjs">trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorWebBackendCommands.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDOMNodeDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/LayoutTests/ChangeLog        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-03-10  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AXI: Expose checked/disabled/expanded/pressed/readonly/selected
+        https://bugs.webkit.org/show_bug.cgi?id=129781
+
+        Reviewed by Joseph Pecoraro.
+
+        Enabling several more properties to be exposed in the Accessibility Node Inspector.
+
+        * inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
+        * inspector-protocol/dom/getAccessibilityPropertiesForNode.html:
+
</ins><span class="cx"> 2014-03-10  Bem Jones-Bey  &lt;bjonesbe@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [CSS Shapes] inset corner radii are not flipped for vertical writing modes
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1,8 +1,51 @@
</span><span class="cx"> Checking Web Inspector protocol for the Accessibility Node Inspector.
</span><span class="cx"> 
</span><del>-              
-Total elements to be tested: 23.
</del><ins>+Total elements to be tested: 50.
</ins><span class="cx"> 
</span><ins>+&lt;li role=&quot;treeitem&quot; aria-expanded=&quot;false&quot;&gt;collapsed&lt;/li&gt;
+    exists: true
+    label: 
+    role: treeitem
+    expanded: false
+
+&lt;li role=&quot;treeitem&quot; aria-expanded=&quot;true&quot;&gt;expanded&lt;/li&gt;
+    exists: true
+    label: 
+    role: treeitem
+    expanded: true
+
+&lt;div role=&quot;tab&quot; aria-selected=&quot;false&quot;&gt;not selected&lt;/div&gt;
+    exists: true
+    label: 
+    role: tab
+
+&lt;div role=&quot;tab&quot; aria-selected=&quot;true&quot;&gt;selected&lt;/div&gt;
+    exists: true
+    label: 
+    role: tab
+    selected: true
+
+&lt;div role=&quot;option&quot; aria-selected=&quot;false&quot;&gt;not selected&lt;/div&gt;
+    exists: true
+    label: 
+    role: option
+
+&lt;div role=&quot;option&quot; aria-selected=&quot;true&quot;&gt;selected&lt;/div&gt;
+    exists: true
+    label: 
+    role: option
+    selected: true
+
+&lt;option&gt;not selected&lt;/option&gt;
+    exists: false
+    label: 
+    role: 
+
+&lt;option selected=&quot;&quot;&gt;FIXME: Selected is false. Expected true. http://webkit.org/b/129835&lt;/option&gt;
+    exists: false
+    label: 
+    role: 
+
</ins><span class="cx"> &lt;img src=&quot;./404.gif&quot; alt=&quot;x&quot; style=&quot;display:none;&quot;&gt;
</span><span class="cx">     exists: false
</span><span class="cx">     label: 
</span><span class="lines">@@ -47,21 +90,134 @@
</span><span class="cx">     hidden: true
</span><span class="cx">     required: false
</span><span class="cx"> 
</span><del>-&lt;input aria-invalid=&quot;fake-value-will-eval-to-true&quot;&gt;
</del><ins>+&lt;div role=&quot;radio&quot; aria-checked=&quot;false&quot;&gt;unchecked&lt;/div&gt;
</ins><span class="cx">     exists: true
</span><span class="cx">     label: 
</span><ins>+    role: radio
+    checked: false
+    required: false
+
+&lt;div role=&quot;radio&quot; aria-checked=&quot;mixed&quot;&gt;unchecked [sic] mixed state will not be exposed on radios per ARIA spec.&lt;/div&gt;
+    exists: true
+    label: 
+    role: radio
+    checked: false
+    required: false
+
+&lt;div role=&quot;radio&quot; aria-checked=&quot;true&quot;&gt;checked&lt;/div&gt;
+    exists: true
+    label: 
+    role: radio
+    checked: true
+    required: false
+
+&lt;div role=&quot;radio&quot;&gt;unchecked (checked undefined evals to false on radio)&lt;/div&gt;
+    exists: true
+    label: 
+    role: radio
+    checked: false
+    required: false
+
+&lt;input type=&quot;radio&quot; checked=&quot;&quot;&gt;
+    exists: true
+    label: 
+    role: radio
+    checked: true
+    required: false
+
+&lt;input type=&quot;radio&quot;&gt;
+    exists: true
+    label: 
+    role: radio
+    checked: false
+    required: false
+
+&lt;div role=&quot;checkbox&quot; aria-checked=&quot;false&quot;&gt;unchecked&lt;/div&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: false
+    required: false
+
+&lt;div role=&quot;checkbox&quot; aria-checked=&quot;mixed&quot;&gt;mixed&lt;/div&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: mixed
+    required: false
+
+&lt;div role=&quot;checkbox&quot; aria-checked=&quot;true&quot;&gt;checked&lt;/div&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: true
+    required: false
+
+&lt;div role=&quot;checkbox&quot;&gt;unchecked (checked undefined evals to false on checkbox)&lt;/div&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: false
+    required: false
+
+&lt;input type=&quot;checkbox&quot; checked=&quot;&quot;&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: true
+    required: false
+
+&lt;input type=&quot;checkbox&quot;&gt;
+    exists: true
+    label: 
+    role: checkbox
+    checked: false
+    required: false
+
+&lt;div role=&quot;textbox&quot; tabindex=&quot;0&quot; aria-disabled=&quot;true&quot;&gt;disabled&lt;/div&gt;
+    exists: true
+    label: 
</ins><span class="cx">     role: 
</span><ins>+    disabled: true
+    readonly: true
+    required: false
+
+&lt;input disabled=&quot;&quot; value=&quot;disabled&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    disabled: true
+    required: false
+
+&lt;div role=&quot;textbox&quot; tabindex=&quot;0&quot; aria-readonly=&quot;true&quot;&gt;readonly&lt;/div&gt;
+    exists: true
+    label: 
+    role: 
+    readonly: true
+    required: false
+
+&lt;input readonly=&quot;&quot; value=&quot;readonly&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    readonly: true
+    required: false
+
+&lt;input aria-invalid=&quot;foo&quot; value=&quot;fake value will eval to true&quot;&gt;
+    exists: true
+    label: 
+    role: 
</ins><span class="cx">     invalid: true
</span><span class="cx">     required: false
</span><span class="cx"> 
</span><del>-&lt;input aria-invalid=&quot;spelling&quot;&gt;
</del><ins>+&lt;input aria-invalid=&quot;spelling&quot; value=&quot;invalid spelling&quot;&gt;
</ins><span class="cx">     exists: true
</span><span class="cx">     label: 
</span><span class="cx">     role: 
</span><span class="cx">     invalid: spelling
</span><span class="cx">     required: false
</span><span class="cx"> 
</span><del>-&lt;input aria-required=&quot;true&quot;&gt;
</del><ins>+&lt;input aria-required=&quot;true&quot; value=&quot;required&quot;&gt;
</ins><span class="cx">     exists: true
</span><span class="cx">     label: 
</span><span class="cx">     role: 
</span><span class="lines">@@ -89,6 +245,26 @@
</span><span class="cx">     label: 
</span><span class="cx">     role: button
</span><span class="cx"> 
</span><ins>+&lt;div role=&quot;button&quot; tabindex=&quot;0&quot; aria-pressed=&quot;false&quot;&gt;Not Pressed.&lt;/div&gt;
+    exists: true
+    label: 
+    role: 
+    pressed: false
+    required: false
+
+&lt;div role=&quot;button&quot; tabindex=&quot;0&quot; aria-pressed=&quot;true&quot;&gt;FIXME: Pressed is false. Expected true. http://webkit.org/b/129830&lt;/div&gt;
+    exists: true
+    label: 
+    role: 
+    pressed: false
+    required: false
+
+&lt;div role=&quot;button&quot; tabindex=&quot;0&quot; aria-disabled=&quot;true&quot;&gt;disabled&lt;/div&gt;
+    exists: true
+    label: 
+    role: button
+    disabled: true
+
</ins><span class="cx"> &lt;div role=&quot;button&quot; tabindex=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="cx">     exists: true
</span><span class="cx">     label: 
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -6,6 +6,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Checking Web Inspector protocol for the Accessibility Node Inspector.&lt;/p&gt;
</span><span class="cx"> 
</span><ins>+&lt;div id=&quot;examples&quot;&gt;
+
</ins><span class="cx"> &lt;script class=&quot;ex&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script class=&quot;ex&quot; style=&quot;display:block;&quot;&gt;&lt;/script&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -17,14 +19,36 @@
</span><span class="cx"> &lt;span class=&quot;ex&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;ex&quot; role=&quot;button&quot; tabindex=&quot;0&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;ex&quot; role=&quot;button&quot; tabindex=&quot;0&quot; aria-disabled=&quot;true&quot;&gt;disabled&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;button&quot; tabindex=&quot;0&quot; aria-pressed=&quot;true&quot;&gt;FIXME: Pressed is false. Expected true. http://webkit.org/b/129830&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;button&quot; tabindex=&quot;0&quot; aria-pressed=&quot;false&quot;&gt;Not Pressed.&lt;/div&gt;
</ins><span class="cx"> &lt;button class=&quot;ex&quot;&gt;&lt;/button&gt;
</span><span class="cx"> &lt;input class=&quot;ex&quot; type=&quot;button&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;input class=&quot;ex&quot;&gt;
</span><span class="cx"> &lt;input class=&quot;ex&quot; required&gt;
</span><del>-&lt;input class=&quot;ex&quot; aria-required=&quot;true&quot;&gt;
-&lt;input class=&quot;ex&quot; aria-invalid=&quot;spelling&quot;&gt;
-&lt;input class=&quot;ex&quot; aria-invalid=&quot;fake-value-will-eval-to-true&quot;&gt;
</del><ins>+&lt;input class=&quot;ex&quot; aria-required=&quot;true&quot; value=&quot;required&quot;&gt;
+&lt;input class=&quot;ex&quot; aria-invalid=&quot;spelling&quot; value=&quot;invalid spelling&quot;&gt;
+&lt;input class=&quot;ex&quot; aria-invalid=&quot;foo&quot; value=&quot;fake value will eval to true&quot;&gt;
+&lt;input class=&quot;ex&quot; readonly value=&quot;readonly&quot;&gt;
+&lt;div class=&quot;ex&quot; role=&quot;textbox&quot; tabindex=&quot;0&quot; aria-readonly=&quot;true&quot;&gt;readonly&lt;/div&gt;
+&lt;input class=&quot;ex&quot; disabled value=&quot;disabled&quot;&gt;
+&lt;div class=&quot;ex&quot; role=&quot;textbox&quot; tabindex=&quot;0&quot; aria-disabled=&quot;true&quot;&gt;disabled&lt;/div&gt;
+
+&lt;input class=&quot;ex&quot; type=&quot;checkbox&quot;&gt;
+&lt;input class=&quot;ex&quot; type=&quot;checkbox&quot; checked&gt;
+&lt;div class=&quot;ex&quot; role=&quot;checkbox&quot;&gt;unchecked (checked undefined evals to false on checkbox)&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;checkbox&quot; aria-checked=&quot;true&quot;&gt;checked&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;checkbox&quot; aria-checked=&quot;mixed&quot;&gt;mixed&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;checkbox&quot; aria-checked=&quot;false&quot;&gt;unchecked&lt;/div&gt;
+
+&lt;input class=&quot;ex&quot; type=&quot;radio&quot;&gt;
+&lt;input class=&quot;ex&quot; type=&quot;radio&quot; checked&gt;
+&lt;div class=&quot;ex&quot; role=&quot;radio&quot;&gt;unchecked (checked undefined evals to false on radio)&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;radio&quot; aria-checked=&quot;true&quot;&gt;checked&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;radio&quot; aria-checked=&quot;mixed&quot;&gt;unchecked [sic] mixed state will not be exposed on radios per ARIA spec.&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;radio&quot; aria-checked=&quot;false&quot;&gt;unchecked&lt;/div&gt;
+
</ins><span class="cx"> &lt;input class=&quot;ex&quot; aria-hidden=&quot;true&quot;&gt;
</span><span class="cx"> &lt;input class=&quot;ex&quot; style=&quot;display:none;&quot;&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -34,15 +58,34 @@
</span><span class="cx"> &lt;img class=&quot;ex&quot; src=&quot;./404.gif&quot; alt=&quot;x&quot; aria-hidden=&quot;true&quot;&gt;
</span><span class="cx"> &lt;img class=&quot;ex&quot; src=&quot;./404.gif&quot; alt=&quot;x&quot; style=&quot;display:none;&quot;&gt;
</span><span class="cx"> 
</span><ins>+&lt;select multiple&gt;
+    &lt;option class=&quot;ex&quot; selected&gt;FIXME: Selected is false. Expected true. http://webkit.org/b/129835&lt;/option&gt;
+    &lt;option class=&quot;ex&quot;&gt;not selected&lt;/option&gt;
+&lt;/select&gt;
+&lt;div role=&quot;listbox&quot;&gt;
+    &lt;div class=&quot;ex&quot; role=&quot;option&quot; aria-selected=&quot;true&quot;&gt;selected&lt;/div&gt;
+    &lt;div class=&quot;ex&quot; role=&quot;option&quot; aria-selected=&quot;false&quot;&gt;not selected&lt;/div&gt;
+&lt;/div&gt;
+&lt;div role=&quot;tablist&quot;&gt;
+    &lt;div class=&quot;ex&quot; role=&quot;tab&quot; aria-selected=&quot;true&quot;&gt;selected&lt;/div&gt;
+    &lt;div class=&quot;ex&quot; role=&quot;tab&quot; aria-selected=&quot;false&quot;&gt;not selected&lt;/div&gt;
+&lt;/div&gt;
+
+&lt;ul role=&quot;tree&quot;&gt;
+    &lt;li class=&quot;ex&quot; role=&quot;treeitem&quot; aria-expanded=&quot;true&quot;&gt;expanded&lt;/li&gt;
+    &lt;li class=&quot;ex&quot; role=&quot;treeitem&quot; aria-expanded=&quot;false&quot;&gt;collapsed&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;/div&gt;
+
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> function $(selector) {
</span><span class="cx">     return document.querySelectorAll(selector);
</span><span class="cx"> }
</span><span class="cx"> function cleanup() {
</span><del>-    var examples = $(&quot;.ex&quot;);
-    for (el in examples)
-        el.style.display = &quot;none&quot;;
</del><ins>+    // Hide the test element container to avoid irrelevant output diffs on subsequent updates.
+    document.getElementById(&quot;examples&quot;).style.display = &quot;none&quot;;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function test() {
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebCore/ChangeLog        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2014-03-10  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AXI: Expose checked/disabled/expanded/pressed/readonly/selected
+        https://bugs.webkit.org/show_bug.cgi?id=129781
+
+        Reviewed by Joseph Pecoraro.
+
+        Enabling several more properties to be exposed in the Accessibility Node Inspector.
+
+        Updated Tests: inspector-protocol/dom/getAccessibilityPropertiesForNode.html
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::supportsChecked):
+        * accessibility/AccessibilityObject.h:
+        * inspector/InspectorDOMAgent.cpp:
+        (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
+        * inspector/protocol/DOM.json:
+
</ins><span class="cx"> 2014-03-10  Bem Jones-Bey  &lt;bjonesbe@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [CSS Shapes] inset corner radii are not flipped for vertical writing modes
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1930,7 +1930,20 @@
</span><span class="cx">     
</span><span class="cx">     return false;  
</span><span class="cx"> }
</span><del>-    
</del><ins>+
+bool AccessibilityObject::supportsChecked() const
+{
+    switch (roleValue()) {
+    case CheckBoxRole:
+    case MenuItemCheckboxRole:
+    case MenuItemRadioRole:
+    case RadioButtonRole:
+        return true;
+    default:
+        return false;
+    }
+}
+
</ins><span class="cx"> AccessibilityButtonState AccessibilityObject::checkboxOrRadioValue() const
</span><span class="cx"> {
</span><span class="cx">     // If this is a real checkbox or radio button, AccessibilityRenderObject will handle.
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.h (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.h        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.h        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -587,6 +587,7 @@
</span><span class="cx">     bool ariaIsMultiline() const;
</span><span class="cx">     virtual const AtomicString&amp; invalidStatus() const;
</span><span class="cx">     bool supportsARIAExpanded() const;
</span><ins>+    bool supportsChecked() const;
</ins><span class="cx">     AccessibilitySortDirection sortDirection() const;
</span><span class="cx">     virtual bool canvasHasFallbackContent() const { return false; }
</span><span class="cx">     bool supportsRangeValue() const;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1414,38 +1414,82 @@
</span><span class="cx">     if (!WebCore::AXObjectCache::accessibilityEnabled())
</span><span class="cx">         WebCore::AXObjectCache::enableAccessibility();
</span><span class="cx"> 
</span><ins>+    TypeBuilder::DOM::AccessibilityProperties::Checked::Enum checked = TypeBuilder::DOM::AccessibilityProperties::Checked::False;
</ins><span class="cx">     bool exists = false;
</span><ins>+    bool expanded = false;
+    bool disabled = false;
</ins><span class="cx">     bool ignored = true;
</span><span class="cx">     bool ignoredByDefault = false;
</span><span class="cx">     String invalid = &quot;false&quot;; // String values: true, false, spelling, grammar, etc.
</span><span class="cx">     bool hidden = false;
</span><span class="cx">     String label; // FIXME: Waiting on http://webkit.org/b/121134
</span><ins>+    bool pressed = false;
+    bool readonly = false;
</ins><span class="cx">     bool required = false;
</span><span class="cx">     String role;
</span><ins>+    bool selected = false;
+    bool supportsChecked = false;
+    bool supportsExpanded = false;
+    bool supportsPressed = false;
</ins><span class="cx">     bool supportsRequired = false;
</span><span class="cx"> 
</span><span class="cx">     if (AXObjectCache* axObjectCache = node-&gt;document().axObjectCache()) {
</span><span class="cx">         if (AccessibilityObject* axObject = axObjectCache-&gt;getOrCreate(node)) {
</span><ins>+
+            supportsChecked = axObject-&gt;supportsChecked();
+            if (supportsChecked) {
+                int checkValue = axObject-&gt;checkboxOrRadioValue(); // Element using aria-checked.
+                if (checkValue == 1)
+                    checked = TypeBuilder::DOM::AccessibilityProperties::Checked::True;
+                else if (checkValue == 2)
+                    checked = TypeBuilder::DOM::AccessibilityProperties::Checked::Mixed;
+                else if (axObject-&gt;isChecked()) // Native checkbox.
+                    checked = TypeBuilder::DOM::AccessibilityProperties::Checked::True;
+            }
+            
+            disabled = !axObject-&gt;isEnabled(); 
</ins><span class="cx">             exists = true;
</span><ins>+            
+            supportsExpanded = axObject-&gt;supportsARIAExpanded();
+            if (supportsExpanded)
+                expanded = axObject-&gt;isExpanded();
+            
</ins><span class="cx">             ignored = axObject-&gt;accessibilityIsIgnored();
</span><span class="cx">             ignoredByDefault = axObject-&gt;accessibilityIsIgnoredByDefault();
</span><span class="cx">             invalid = axObject-&gt;invalidStatus();
</span><ins>+            
</ins><span class="cx">             if (axObject-&gt;isARIAHidden() || axObject-&gt;isDOMHidden())
</span><span class="cx">                 hidden = true;
</span><ins>+            
+            supportsPressed = axObject-&gt;ariaPressedIsPresent();
+            if (supportsPressed)
+                pressed = axObject-&gt;isPressed();
+            
+            if (axObject-&gt;isTextControl())
+                readonly = axObject-&gt;isReadOnly();
+
</ins><span class="cx">             supportsRequired = axObject-&gt;supportsRequiredAttribute();
</span><span class="cx">             if (supportsRequired)
</span><span class="cx">                 required = axObject-&gt;isRequired();
</span><ins>+            
</ins><span class="cx">             role = axObject-&gt;computedRoleString();
</span><ins>+            selected = axObject-&gt;isSelected();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    RefPtr&lt;Inspector::TypeBuilder::DOM::AccessibilityProperties&gt; value = Inspector::TypeBuilder::DOM::AccessibilityProperties::create()
</del><ins>+    RefPtr&lt;TypeBuilder::DOM::AccessibilityProperties&gt; value = TypeBuilder::DOM::AccessibilityProperties::create()
</ins><span class="cx">         .setExists(exists)
</span><span class="cx">         .setLabel(label)
</span><span class="cx">         .setRole(role)
</span><span class="cx">         .setNodeId(pushNodePathToFrontend(node));
</span><span class="cx"> 
</span><span class="cx">     if (exists) {
</span><ins>+        if (supportsChecked)
+            value-&gt;setChecked(checked);
+        if (disabled)
+            value-&gt;setDisabled(disabled);
+        if (supportsExpanded)
+            value-&gt;setExpanded(expanded);
</ins><span class="cx">         if (ignored)
</span><span class="cx">             value-&gt;setIgnored(ignored);
</span><span class="cx">         if (ignoredByDefault)
</span><span class="lines">@@ -1454,8 +1498,14 @@
</span><span class="cx">             value-&gt;setInvalid(invalid);
</span><span class="cx">         if (hidden)
</span><span class="cx">             value-&gt;setHidden(hidden);
</span><ins>+        if (supportsPressed)
+            value-&gt;setPressed(pressed);
+        if (readonly)
+            value-&gt;setReadonly(readonly);
</ins><span class="cx">         if (supportsRequired)
</span><span class="cx">             value-&gt;setRequired(required);
</span><ins>+        if (selected)
+            value-&gt;setSelected(selected);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return value.release();
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorprotocolDOMjson"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/protocol/DOM.json (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/protocol/DOM.json        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebCore/inspector/protocol/DOM.json        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -59,15 +59,21 @@
</span><span class="cx">             &quot;description&quot;: &quot;A structure holding accessibility properties.&quot;,
</span><span class="cx">             &quot;type&quot;: &quot;object&quot;,
</span><span class="cx">             &quot;properties&quot;: [
</span><del>-                { &quot;name&quot;: &quot;exists&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;description&quot;: &quot;Returns whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values.&quot; },
-                { &quot;name&quot;: &quot;ignored&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly.&quot; },
-                { &quot;name&quot;: &quot;ignoredByDefault&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns whether the accessibility of the associated AX object node is ignored by default for node type.&quot; },
-                { &quot;name&quot;: &quot;invalid&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns the invalid status for form fields: true, false, grammar, spelling.&quot; },
-                { &quot;name&quot;: &quot;hidden&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns true if node or an ancestor is hidden via CSS or explicit @aria-hidden, to clarify why the element is ignored.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;checked&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;true&quot;, &quot;false&quot;, &quot;mixed&quot;], &quot;description&quot;: &quot;Checked state of certain form controls.&quot; },
+                { &quot;name&quot;: &quot;disabled&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Disabled state of form controls.&quot; },
+                { &quot;name&quot;: &quot;exists&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;description&quot;: &quot;Indicates whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values.&quot; },
+                { &quot;name&quot;: &quot;expanded&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Expanded state.&quot; },
+                { &quot;name&quot;: &quot;ignored&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Indicates whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly.&quot; },
+                { &quot;name&quot;: &quot;ignoredByDefault&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;State indicating whether the accessibility of the associated AX object node is ignored by default for node type.&quot; },
+                { &quot;name&quot;: &quot;invalid&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Invalid status of form controls: true, false, grammar, spelling.&quot; },
+                { &quot;name&quot;: &quot;hidden&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Hidden state. True if node or an ancestor is hidden via CSS or explicit @aria-hidden, to clarify why the element is ignored.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;label&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Computed label value for the node, sometimes calculated by referencing other nodes.&quot; },
</span><del>-                { &quot;name&quot;: &quot;required&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns whether the element is required or not required.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;nodeId&quot;, &quot;$ref&quot;: &quot;NodeId&quot;, &quot;description&quot;: &quot;Target &lt;code&gt;DOMNode&lt;/code&gt; id.&quot; },
+                { &quot;name&quot;: &quot;pressed&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Pressed state for toggle buttons.&quot; },
+                { &quot;name&quot;: &quot;readonly&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Readonly state of text controls.&quot; },
+                { &quot;name&quot;: &quot;required&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Required state of form controls.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;role&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Computed value for first recognized role token, default role per element, or overridden role.&quot; },
</span><del>-                { &quot;name&quot;: &quot;nodeId&quot;, &quot;$ref&quot;: &quot;NodeId&quot;, &quot;description&quot;: &quot;Target &lt;code&gt;DOMNode&lt;/code&gt; id.&quot; }
</del><ins>+                { &quot;name&quot;: &quot;selected&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Selected state of certain form controls.&quot; }
</ins><span class="cx">             ]
</span><span class="cx">         },
</span><span class="cx">         {
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebInspectorUI/ChangeLog        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2014-03-10  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AXI: Expose checked/disabled/expanded/pressed/readonly/selected
+        https://bugs.webkit.org/show_bug.cgi?id=129781
+
+        Reviewed by Joseph Pecoraro.
+
+        Enabling several more properties to be exposed in the Accessibility Node Inspector.
+
+        Updated Tests: inspector-protocol/dom/getAccessibilityPropertiesForNode.html
+
+        * Localizations/en.lproj/localizedStrings.js:
+        * UserInterface/Models/DOMNode.js:
+        * UserInterface/Protocol/InspectorWebBackendCommands.js:
+        * UserInterface/Views/DOMNodeDetailsSidebarPanel.js:
+
</ins><span class="cx"> 2014-03-10  Brian Burg  &lt;bburg@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: show a debugging-oriented dashboard when scripts pause
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -75,6 +75,7 @@
</span><span class="cx"> localizedStrings[&quot;Capturing&quot;] = &quot;Capturing&quot;;
</span><span class="cx"> localizedStrings[&quot;Catch Variables&quot;] = &quot;Catch Variables&quot;;
</span><span class="cx"> localizedStrings[&quot;Character Data&quot;] = &quot;Character Data&quot;;
</span><ins>+localizedStrings[&quot;Checked&quot;] = &quot;Checked&quot;;
</ins><span class="cx"> localizedStrings[&quot;Child Layers&quot;] = &quot;Child Layers&quot;;
</span><span class="cx"> localizedStrings[&quot;Clear Log&quot;] = &quot;Clear Log&quot;;
</span><span class="cx"> localizedStrings[&quot;Clear Timeline&quot;] = &quot;Clear Timeline&quot;;
</span><span class="lines">@@ -122,6 +123,7 @@
</span><span class="cx"> localizedStrings[&quot;Disable Breakpoints&quot;] = &quot;Disable Breakpoints&quot;;
</span><span class="cx"> localizedStrings[&quot;Disable all breakpoints&quot;] = &quot;Disable all breakpoints&quot;;
</span><span class="cx"> localizedStrings[&quot;Disable point to inspect mode (%s)&quot;] = &quot;Disable point to inspect mode (%s)&quot;;
</span><ins>+localizedStrings[&quot;Disabled&quot;] = &quot;Disabled&quot;;
</ins><span class="cx"> localizedStrings[&quot;Dock to bottom of window&quot;] = &quot;Dock to bottom of window&quot;;
</span><span class="cx"> localizedStrings[&quot;Dock to right of window&quot;] = &quot;Dock to right of window&quot;;
</span><span class="cx"> localizedStrings[&quot;Document&quot;] = &quot;Document&quot;;
</span><span class="lines">@@ -177,6 +179,7 @@
</span><span class="cx"> localizedStrings[&quot;Expand columns&quot;] = &quot;Expand columns&quot;;
</span><span class="cx"> localizedStrings[&quot;Expires&quot;] = &quot;Expires&quot;;
</span><span class="cx"> localizedStrings[&quot;Expression&quot;] = &quot;Expression&quot;;
</span><ins>+localizedStrings[&quot;Expanded&quot;] = &quot;Expanded&quot;;
</ins><span class="cx"> localizedStrings[&quot;Extension Scripts&quot;] = &quot;Extension Scripts&quot;;
</span><span class="cx"> localizedStrings[&quot;Extra Scripts&quot;] = &quot;Extra Scripts&quot;;
</span><span class="cx"> localizedStrings[&quot;Filename&quot;] = &quot;Filename&quot;;
</span><span class="lines">@@ -258,6 +261,7 @@
</span><span class="cx"> localizedStrings[&quot;Message&quot;] = &quot;Message&quot;;
</span><span class="cx"> localizedStrings[&quot;Method&quot;] = &quot;Method&quot;;
</span><span class="cx"> localizedStrings[&quot;Metrics&quot;] = &quot;Metrics&quot;;
</span><ins>+localizedStrings[&quot;Mixed&quot;] = &quot;Mixed&quot;;
</ins><span class="cx"> localizedStrings[&quot;Name&quot;] = &quot;Name&quot;;
</span><span class="cx"> localizedStrings[&quot;Network Issue&quot;] = &quot;Network Issue&quot;;
</span><span class="cx"> localizedStrings[&quot;Network Requests&quot;] = &quot;Network Requests&quot;;
</span><span class="lines">@@ -298,6 +302,7 @@
</span><span class="cx"> localizedStrings[&quot;Pause script execution (%s or %s)&quot;] = &quot;Pause script execution (%s or %s)&quot;;
</span><span class="cx"> localizedStrings[&quot;Play Sound&quot;] = &quot;Play Sound&quot;;
</span><span class="cx"> localizedStrings[&quot;Port&quot;] = &quot;Port&quot;;
</span><ins>+localizedStrings[&quot;Pressed&quot;] = &quot;Pressed&quot;;
</ins><span class="cx"> localizedStrings[&quot;Pretty print&quot;] = &quot;Pretty print&quot;;
</span><span class="cx"> localizedStrings[&quot;Primary Key&quot;] = &quot;Primary Key&quot;;
</span><span class="cx"> localizedStrings[&quot;Primary Key \u2014 %s&quot;] = &quot;Primary Key \u2014 %s&quot;;
</span><span class="lines">@@ -310,6 +315,7 @@
</span><span class="cx"> localizedStrings[&quot;Query String&quot;] = &quot;Query String&quot;;
</span><span class="cx"> localizedStrings[&quot;Radial Gradient&quot;] = &quot;Radial Gradient&quot;;
</span><span class="cx"> localizedStrings[&quot;Range Issue&quot;] = &quot;Range Issue&quot;;
</span><ins>+localizedStrings[&quot;Readonly&quot;] = &quot;Readonly&quot;;
</ins><span class="cx"> localizedStrings[&quot;Reasons for compositing:&quot;] = &quot;Reasons for compositing:&quot;;
</span><span class="cx"> localizedStrings[&quot;Recording&quot;] = &quot;Recording&quot;;
</span><span class="cx"> localizedStrings[&quot;Recording JavaScript Profile\u2026&quot;] = &quot;Recording JavaScript Profile\u2026&quot;;
</span><span class="lines">@@ -346,6 +352,7 @@
</span><span class="cx"> localizedStrings[&quot;Search Resource Content&quot;] = &quot;Search Resource Content&quot;;
</span><span class="cx"> localizedStrings[&quot;Secure&quot;] = &quot;Secure&quot;;
</span><span class="cx"> localizedStrings[&quot;Security Issue&quot;] = &quot;Security Issue&quot;;
</span><ins>+localizedStrings[&quot;Selected&quot;] = &quot;Selected&quot;;
</ins><span class="cx"> localizedStrings[&quot;Self&quot;] = &quot;Self&quot;;
</span><span class="cx"> localizedStrings[&quot;Self Time&quot;] = &quot;Self Time&quot;;
</span><span class="cx"> localizedStrings[&quot;Semantic Issue&quot;] = &quot;Semantic Issue&quot;;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsDOMNodejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -447,14 +447,20 @@
</span><span class="cx">         {
</span><span class="cx">             if (!error &amp;&amp; callback &amp;&amp; accessibilityProperties) {
</span><span class="cx">                 callback({
</span><ins>+                    checked: accessibilityProperties.checked,
+                    disabled: accessibilityProperties.disabled,
</ins><span class="cx">                     exists: accessibilityProperties.exists,
</span><ins>+                    expanded: accessibilityProperties.expanded,
</ins><span class="cx">                     ignored: accessibilityProperties.ignored,
</span><span class="cx">                     ignoredByDefault: accessibilityProperties.ignoredByDefault,
</span><span class="cx">                     invalid: accessibilityProperties.invalid,
</span><span class="cx">                     hidden: accessibilityProperties.hidden,
</span><span class="cx">                     label: accessibilityProperties.label,
</span><ins>+                    pressed: accessibilityProperties.pressed,
+                    readonly: accessibilityProperties.readonly,
</ins><span class="cx">                     required: accessibilityProperties.required,
</span><del>-                    role: accessibilityProperties.role
</del><ins>+                    role: accessibilityProperties.role,
+                    selected: accessibilityProperties.selected
</ins><span class="cx">                 });
</span><span class="cx">             }
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceProtocolInspectorWebBackendCommandsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorWebBackendCommands.js (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorWebBackendCommands.js        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorWebBackendCommands.js        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -65,6 +65,7 @@
</span><span class="cx"> 
</span><span class="cx"> // DOM.
</span><span class="cx"> InspectorBackend.registerDOMDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, &quot;DOM&quot;);
</span><ins>+InspectorBackend.registerEnum(&quot;DOM.AccessibilityPropertiesChecked&quot;, {True: &quot;true&quot;, False: &quot;false&quot;, Mixed: &quot;mixed&quot;});
</ins><span class="cx"> InspectorBackend.registerEvent(&quot;DOM.documentUpdated&quot;, []);
</span><span class="cx"> InspectorBackend.registerEvent(&quot;DOM.setChildNodes&quot;, [&quot;parentId&quot;, &quot;nodes&quot;]);
</span><span class="cx"> InspectorBackend.registerEvent(&quot;DOM.attributeModified&quot;, [&quot;nodeId&quot;, &quot;name&quot;, &quot;value&quot;]);
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDOMNodeDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js (165429 => 165430)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js        2014-03-11 04:31:06 UTC (rev 165429)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js        2014-03-11 04:52:02 UTC (rev 165430)
</span><span class="lines">@@ -52,11 +52,17 @@
</span><span class="cx">     var eventListenersSection = new WebInspector.DetailsSection(&quot;dom-node-event-listeners&quot;, WebInspector.UIString(&quot;Event Listeners&quot;), [this._eventListenersSectionGroup]);    
</span><span class="cx"> 
</span><span class="cx">     this._accessibilityEmptyRow = new WebInspector.DetailsSectionRow(WebInspector.UIString(&quot;No Accessibility Information&quot;));
</span><ins>+    this._accessibilityNodeCheckedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Checked&quot;));
+    this._accessibilityNodeDisabledRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Disabled&quot;));
+    this._accessibilityNodeExpandedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Expanded&quot;));
</ins><span class="cx">     this._accessibilityNodeIgnoredRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Ignored&quot;));
</span><span class="cx">     this._accessibilityNodeInvalidRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Invalid&quot;));
</span><span class="cx">     this._accessibilityNodeLabelRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Label&quot;));
</span><ins>+    this._accessibilityNodePressedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Pressed&quot;));
+    this._accessibilityNodeReadonlyRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Readonly&quot;));
</ins><span class="cx">     this._accessibilityNodeRequiredRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Required&quot;));
</span><span class="cx">     this._accessibilityNodeRoleRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Role&quot;));
</span><ins>+    this._accessibilityNodeSelectedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Selected&quot;));
</ins><span class="cx">     
</span><span class="cx">     this._accessibilityGroup = new WebInspector.DetailsSectionGroup([this._accessibilityEmptyRow]);
</span><span class="cx">     var accessibilitySection = new WebInspector.DetailsSection(&quot;dom-node-accessibility&quot;, WebInspector.UIString(&quot;Accessibility&quot;), [this._accessibilityGroup]);    
</span><span class="lines">@@ -235,18 +241,49 @@
</span><span class="cx">         }
</span><span class="cx">     },
</span><span class="cx"> 
</span><del>-    _refreshAccessibility: function()
-    {
-        var domNode = this.domNode;
-        if (!domNode)
-            return;
</del><ins>+    _refreshAccessibility: (function(){
</ins><span class="cx"> 
</span><del>-        function accessibilityPropertiesCallback(accessibilityProperties)
-        {
</del><ins>+        var properties = {};
+        var domNode;
+
+        function booleanValueToLocalizedStringIfTrue(property) {
+            if (properties[property])
+                return WebInspector.UIString(&quot;Yes&quot;);
+            return &quot;&quot;;
+        }
+
+        function booleanValueToLocalizedStringIfPropertyDefined(property) {
+            if (properties[property] !== undefined) {
+                if (properties[property])
+                    return WebInspector.UIString(&quot;Yes&quot;);
+                else
+                    return WebInspector.UIString(&quot;No&quot;);
+            }
+            return &quot;&quot;;
+        }
+
+        function accessibilityPropertiesCallback(accessibilityProperties) {
+
</ins><span class="cx">             if (this.domNode !== domNode)
</span><span class="cx">                 return;
</span><span class="cx"> 
</span><ins>+            // Make sure the current set of properties is available in the closure scope for the helper functions.
+            properties = accessibilityProperties;
+
</ins><span class="cx">             if (accessibilityProperties &amp;&amp; accessibilityProperties.exists) {
</span><ins>+
+                var checked = &quot;&quot;;
+                if (accessibilityProperties.checked !== undefined) {
+                    if (accessibilityProperties.checked === DOMAgent.AccessibilityPropertiesChecked.True)
+                        checked = WebInspector.UIString(&quot;Yes&quot;);
+                    else if (accessibilityProperties.checked === DOMAgent.AccessibilityPropertiesChecked.Mixed)
+                        checked = WebInspector.UIString(&quot;Mixed&quot;);
+                    else // DOMAgent.AccessibilityPropertiesChecked.False
+                        checked = WebInspector.UIString(&quot;No&quot;);
+                }
+
+                var disabled = booleanValueToLocalizedStringIfTrue(&quot;disabled&quot;);
+                var expanded = booleanValueToLocalizedStringIfPropertyDefined(&quot;expanded&quot;);
</ins><span class="cx">                 
</span><span class="cx">                 var ignored = &quot;&quot;;
</span><span class="cx">                 if (accessibilityProperties.ignored) {
</span><span class="lines">@@ -264,13 +301,9 @@
</span><span class="cx">                 if (label &amp;&amp; label !== domNode.getAttribute(&quot;aria-label&quot;))
</span><span class="cx">                     label = WebInspector.UIString(&quot;%s (computed)&quot;).format(label);
</span><span class="cx"> 
</span><del>-                var required = &quot;&quot;;
-                if (accessibilityProperties.required !== undefined) {
-                    if (accessibilityProperties.required)
-                        required = WebInspector.UIString(&quot;Yes&quot;);
-                    else
-                        required = WebInspector.UIString(&quot;No&quot;);
-                }
</del><ins>+                var pressed = booleanValueToLocalizedStringIfPropertyDefined(&quot;pressed&quot;);
+                var readonly = booleanValueToLocalizedStringIfTrue(&quot;readonly&quot;);
+                var required = booleanValueToLocalizedStringIfPropertyDefined(&quot;required&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 var role = accessibilityProperties.role;
</span><span class="cx">                 if (role === &quot;&quot; || role === &quot;unknown&quot;)
</span><span class="lines">@@ -281,19 +314,42 @@
</span><span class="cx">                     else if (domNode.getAttribute(&quot;role&quot;) !== role)
</span><span class="cx">                         role = WebInspector.UIString(&quot;%s (computed)&quot;).format(role);
</span><span class="cx">                 }
</span><del>-                
</del><ins>+
+                var selected = booleanValueToLocalizedStringIfTrue(&quot;selected&quot;);
+
+                // Assign all the properties to their respective views.
+                this._accessibilityNodeCheckedRow.value = checked;
+                this._accessibilityNodeDisabledRow.value = disabled;
+                this._accessibilityNodeExpandedRow.value = expanded;
</ins><span class="cx">                 this._accessibilityNodeIgnoredRow.value = ignored;
</span><span class="cx">                 this._accessibilityNodeInvalidRow.value = invalid;
</span><span class="cx">                 this._accessibilityNodeLabelRow.value = label;
</span><ins>+                this._accessibilityNodePressedRow.value = pressed;
+                this._accessibilityNodeReadonlyRow.value = readonly;
</ins><span class="cx">                 this._accessibilityNodeRequiredRow.value = required;
</span><span class="cx">                 this._accessibilityNodeRoleRow.value = role;
</span><ins>+                this._accessibilityNodeSelectedRow.value = selected;
</ins><span class="cx"> 
</span><ins>+                // Display order, not alphabetical as above.
</ins><span class="cx">                 this._accessibilityGroup.rows = [
</span><ins>+
+                    // Global properties for all elements.
</ins><span class="cx">                     this._accessibilityNodeIgnoredRow,
</span><span class="cx">                     this._accessibilityNodeRoleRow,
</span><span class="cx">                     this._accessibilityNodeLabelRow,
</span><ins>+
+                    // Properties exposed for all input-type elements.
+                    this._accessibilityNodeDisabledRow,
+                    this._accessibilityNodeInvalidRow,
</ins><span class="cx">                     this._accessibilityNodeRequiredRow,
</span><del>-                    this._accessibilityNodeInvalidRow
</del><ins>+
+                    // Role-specific properties.
+                    this._accessibilityNodeCheckedRow,
+                    this._accessibilityNodeExpandedRow,
+                    this._accessibilityNodePressedRow,
+                    this._accessibilityNodeReadonlyRow,
+                    this._accessibilityNodeSelectedRow
+
</ins><span class="cx">                 ];
</span><span class="cx"> 
</span><span class="cx">                 this._accessibilityEmptyRow.hideEmptyMessage();
</span><span class="lines">@@ -303,9 +359,18 @@
</span><span class="cx">                 this._accessibilityEmptyRow.showEmptyMessage();
</span><span class="cx">             }
</span><span class="cx">         }
</span><del>-        domNode.accessibilityProperties(accessibilityPropertiesCallback.bind(this));
-    },
</del><span class="cx"> 
</span><ins>+        function refreshAX() {
+            // Make sure the domNode is available in the closure scope.
+            domNode = this.domNode;
+            if (!domNode)
+                return;
+            domNode.accessibilityProperties(accessibilityPropertiesCallback.bind(this));
+        }
+
+        return refreshAX;
+    }()),
+
</ins><span class="cx">     _attributesChanged: function(event)
</span><span class="cx">     {
</span><span class="cx">         if (event.data.node !== this.domNode)
</span></span></pre>
</div>
</div>

</body>
</html>