<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Add support for ARIA 1.1 attribute 'aria-modal' for dialog and alertdialog"
   href="https://bugs.webkit.org/show_bug.cgi?id=138566#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Add support for ARIA 1.1 attribute 'aria-modal' for dialog and alertdialog"
   href="https://bugs.webkit.org/show_bug.cgi?id=138566">bug 138566</a>
              from <span class="vcard"><a class="email" href="mailto:cfleizach&#64;apple.com" title="chris fleizach &lt;cfleizach&#64;apple.com&gt;"> <span class="fn">chris fleizach</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=264430&amp;action=diff" name="attach_264430" title="patch">attachment 264430</a> <a href="attachment.cgi?id=264430&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=264430&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=264430&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/accessibility/AXObjectCache.cpp:199
&gt; +    if (!visibleNodes.isEmpty()) {</span >

we should write this as
if (visibleNodes.isEmpty())
   return;

early returns are preferred

<span class="quote">&gt; Source/WebCore/accessibility/AXObjectCache.cpp:200
&gt; +        // If any of the node is keyboard focused, we want to pick that.</span >

If any of the nodes &quot;are&quot; keyboard focused

<span class="quote">&gt; Source/WebCore/accessibility/AXObjectCache.cpp:227
&gt; +    if (equalIgnoringCase(downcast&lt;Element&gt;(*node).fastGetAttribute(aria_hiddenAttr), &quot;true&quot;))</span >

we might want to use isNodeAriaVisible() here

<span class="quote">&gt; Source/WebCore/accessibility/AccessibilityObject.cpp:1857
&gt; +    for (Node* node = this-&gt;node(); node; node = node-&gt;parentNode()) {</span >

there might be some ancestorsOfKind method that is better here

<span class="quote">&gt; Source/WebCore/accessibility/AccessibilityObject.cpp:1864
&gt; +bool AccessibilityObject::shouldIgnoreWhenAriaModalOn() const</span >

I think we should name this method ignoredFromARIAModalPresence()
that's not much better than your name -- i just don't like the &quot;aria modal on&quot; formulation which is a bit weird since aria modal isn't something that gets turned on...

<span class="quote">&gt; LayoutTests/accessibility/aria-modal-multiple-dialogs.html:81
&gt; +                dialog.style.display = 'block';</span >

these test files have tabs in them, you should change to spaces</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>