Skip to content
  • cfleizach@apple.com's avatar
    AX: make aria-hidden=false work with subtrees · 10b0bc83
    cfleizach@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125592
    
    Reviewed by Mario Sanchez Prada.
    
    Source/WebCore: 
    
    When a hidden object uses aria-hidden=false, that needs to apply to
    the entire sub-tree (not just the object with aria-hidden on it as it does now).
    
    Enabling this had the side effect of exposing non-rendered text nodes, so there's
    some extra checks to ensure we don't include those elements in this cases.
    
    Test: accessibility/aria-hidden-false-works-in-subtrees.html
    
    * accessibility/AXObjectCache.cpp:
    (WebCore::isNodeAriaVisible):
    * accessibility/AccessibilityNodeObject.cpp:
    (WebCore::AccessibilityNodeObject::computeAccessibilityIsIgnored):
    
    LayoutTests: 
    
    * platform/mac/accessibility/aria-hidden-false-works-in-subtrees-expected.txt: Added.
    * accessibility/aria-hidden-false-works-in-subtrees.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    10b0bc83