[GTK][a11y] Stop registering the tree when clients are connected with ATSPI
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jan 2022 09:31:27 +0000 (09:31 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jan 2022 09:31:27 +0000 (09:31 +0000)
commiteac9965329fac18987d3e91259838ba5957cca66
tree2d0dafbe8744d661f3e9904a78defd829f9a6941
parentdd0117b76247464534a388f2db0a888126237c32
[GTK][a11y] Stop registering the tree when clients are connected with ATSPI
https://bugs.webkit.org/show_bug.cgi?id=235313

Reviewed by Adrian Perez de Castro.

Source/WebCore:

That was needed with the isolated tree mode, now we can go back to register objects on demand.

* accessibility/atspi/AXObjectCacheAtspi.cpp:
(WebCore::AXObjectCache::platformPerformDeferredCacheUpdate):
* accessibility/atspi/AccessibilityAtspi.cpp:
(WebCore::AccessibilityAtspi::addClient):
(WebCore::AccessibilityAtspi::parentChanged):
(WebCore::AccessibilityAtspi::childrenChanged):
(WebCore::AccessibilityAtspi::cacheClearTimerFired):
* accessibility/atspi/AccessibilityObjectAtspi.cpp:
(WebCore::AccessibilityObjectAtspi::isTreeRegistered const): Deleted.
* accessibility/atspi/AccessibilityObjectAtspi.h:
* accessibility/atspi/AccessibilityRootAtspi.cpp:
(WebCore::AccessibilityRootAtspi::embedded):
(WebCore::AccessibilityRootAtspi::child const):
(WebCore::AccessibilityRootAtspi::childAdded):
(WebCore::registerSubtree): Deleted.
(WebCore::AccessibilityRootAtspi::registerTree): Deleted.
(WebCore::AccessibilityRootAtspi::didUnregisterTree): Deleted.
* accessibility/atspi/AccessibilityRootAtspi.h:

Tools:

* TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:
(testDocumentLoadEvents): Now we don't get the initial event from previous document web because it happens
before the first client is connected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/accessibility/atspi/AXObjectCacheAtspi.cpp
Source/WebCore/accessibility/atspi/AccessibilityAtspi.cpp
Source/WebCore/accessibility/atspi/AccessibilityObjectAtspi.cpp
Source/WebCore/accessibility/atspi/AccessibilityObjectAtspi.h
Source/WebCore/accessibility/atspi/AccessibilityRootAtspi.cpp
Source/WebCore/accessibility/atspi/AccessibilityRootAtspi.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp