AX: aria-hidden=false causes video fallback content to be exposed to AX API
authorn_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2016 16:17:17 +0000 (16:17 +0000)
committern_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2016 16:17:17 +0000 (16:17 +0000)
commit7cb15a920b8b46a0e68175acbe8a6186cc591408
treef942fd9d2aebabe13f940214a67df9d585cb9b3c
parent87360ac9e427648358dee97314b2c53061ff30d0
AX: aria-hidden=false causes video fallback content to be exposed to AX API
https://bugs.webkit.org/show_bug.cgi?id=149278

Reviewed by Chris Fleizach.

Source/WebCore:

The comment says when aria-hidden="false" and object is not rendered, we should
check each parent's aria-hidden status until we encounter a rendered object. So
added a check for the rendered parent in order to break out of the loop earlier.

Test case covered in modified accessibility/aria-hidden-negates-no-visibility.html

* accessibility/AXObjectCache.cpp:
(WebCore::isNodeAriaVisible):

LayoutTests:

* accessibility/aria-hidden-negates-no-visibility-expected.txt:
* accessibility/aria-hidden-negates-no-visibility.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/aria-hidden-negates-no-visibility-expected.txt
LayoutTests/accessibility/aria-hidden-negates-no-visibility.html
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXObjectCache.cpp