Changeset 166817 in webkit


Ignore:
Timestamp:
Apr 4, 2014 5:37:55 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

AX: supportsARIAExpanded should always return true for a few roles: combobox, disclosure.
https://bugs.webkit.org/show_bug.cgi?id=129787

Patch by James Craig <jcraig@apple.com> on 2014-04-04
Reviewed by Chris Fleizach.

Source/WebCore:

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

  • accessibility/AccessibilityObject.cpp:

(WebCore::AccessibilityObject::supportsARIAExpanded):

LayoutTests:

  • inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
  • inspector-protocol/dom/getAccessibilityPropertiesForNode.html:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r166813 r166817  
     12014-04-04  James Craig  <jcraig@apple.com>
     2
     3        AX: supportsARIAExpanded should always return true for a few roles: combobox, disclosure.
     4        https://bugs.webkit.org/show_bug.cgi?id=129787
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt:
     9        * inspector-protocol/dom/getAccessibilityPropertiesForNode.html:
     10
    1112014-04-04  Zoltan Horvath  <zoltan@webkit.org>
    212
  • trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt

    r166703 r166817  
    122122    role: combobox
    123123    controlledNodeIds.length: 1
     124    expanded: false
    124125    focused: false
    125126    ownedNodeIds.length: 1
  • trunk/Source/WebCore/ChangeLog

    r166814 r166817  
     12014-04-04  James Craig  <jcraig@apple.com>
     2
     3        AX: supportsARIAExpanded should always return true for a few roles: combobox, disclosure.
     4        https://bugs.webkit.org/show_bug.cgi?id=129787
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html
     9
     10        * accessibility/AccessibilityObject.cpp:
     11        (WebCore::AccessibilityObject::supportsARIAExpanded):
     12
    1132014-04-04  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/accessibility/AccessibilityObject.cpp

    r166649 r166817  
    19611961    // Undefined values should not result in this attribute being exposed to ATs according to ARIA.
    19621962    const AtomicString& expanded = getAttribute(aria_expandedAttr);
    1963     return equalIgnoringCase(expanded, "true") || equalIgnoringCase(expanded, "false");
     1963    if (equalIgnoringCase(expanded, "true") || equalIgnoringCase(expanded, "false"))
     1964        return true;
     1965    switch (roleValue()) {
     1966    case ComboBoxRole:
     1967    case DisclosureTriangleRole:
     1968        return true;
     1969    default:
     1970        return false;
     1971    }
    19641972}
    19651973   
Note: See TracChangeset for help on using the changeset viewer.