Changeset 207496 in webkit


Ignore:
Timestamp:
Oct 18, 2016 4:04:13 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: AXI: focused/focusable state should be based on Accessibility Object instead of Element
https://bugs.webkit.org/show_bug.cgi?id=163088
<rdar://problem/16421985>

Patch by Aaron Chu <aaron_chu@apple.com> on 2016-10-18
Reviewed by Darin Adler.

Changed code in InspectDOMAgent so that it determines the focusability of a Node based
on the AccessibilityNodeObject and not the Element class.

Covered by existing tests:
LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html

  • inspector/InspectorDOMAgent.cpp:

(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207493 r207496  
     12016-10-18  Aaron Chu  <aaron_chu@apple.com>
     2
     3        Web Inspector: AXI: focused/focusable state should be based on Accessibility Object instead of Element
     4        https://bugs.webkit.org/show_bug.cgi?id=163088
     5        <rdar://problem/16421985>
     6
     7        Reviewed by Darin Adler.
     8
     9        Changed code in InspectDOMAgent so that it determines the focusability of a Node based
     10        on the AccessibilityNodeObject and not the Element class.
     11
     12        Covered by existing tests:
     13        LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html
     14
     15        * inspector/InspectorDOMAgent.cpp:
     16        (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
     17
    1182016-10-18  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp

    r206093 r207496  
    16761676           
    16771677            if (is<Element>(*node)) {
    1678                 supportsFocused = downcast<Element>(*node).isFocusable();
     1678                supportsFocused = axObject->canSetFocusAttribute();
    16791679                if (supportsFocused)
    16801680                    focused = axObject->isFocused();
Note: See TracChangeset for help on using the changeset viewer.