AX Isolated Tree Mode: Re-compute AXPropertyName::IsEnabled when a node experiences...
authortyler_w@apple.com <tyler_w@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Jan 2022 23:10:34 +0000 (23:10 +0000)
committertyler_w@apple.com <tyler_w@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Jan 2022 23:10:34 +0000 (23:10 +0000)
commitbcc31f96ef2e449604e200ee95eee5e3b947a8fd
tree3a602a84d8883552f48f66e1f85be465ac396ba8
parent589955e1833d2694e3f8a845c77cc1b04ecd4680
AX Isolated Tree Mode: Re-compute AXPropertyName::IsEnabled when a node experiences AXDisabledStateChanged
https://bugs.webkit.org/show_bug.cgi?id=235295

Reviewed by Chris Fleizach.

Source/WebCore:

Test: accessibility/dynamic-attribute-changes-should-update-isenabled.html

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::updateIsolatedTree):
Re-compute AXPropertyName::IsEnabled when receiving an AXDisabledStateChanged notification.
* accessibility/isolatedtree/AXIsolatedTree.cpp:
(WebCore::AXIsolatedTree::updateNodeProperty):
Handle requests for AXPropertyName::IsEnabled updates.

LayoutTests:

This patch adds a test verifying that AXPropertyName::IsEnabled is re-computed when an
object's disabled state changes.

* accessibility/dynamic-attribute-changes-should-update-isenabled-expected.txt: Added.
* accessibility/dynamic-attribute-changes-should-update-isenabled.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/dynamic-attribute-changes-should-update-isenabled-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/dynamic-attribute-changes-should-update-isenabled.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXObjectCache.cpp
Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp