forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: Move accessibilityThreadTextApisEnabled to DeprecatedGlobalSettings
https://bugs.webkit.org/show_bug.cgi?id=281031 rdar://137469268 Reviewed by Tyler Wilcock. `accessibilityThreadTextApis` tracks global state. Currently, we store this in the Document's settings, but we can't guarantee the value is the same across different documents. Instead, let's move it to `DeprecatedGlobalSettings`, and store/access it on the secondary thread using the existing `gAccessibiltiyThreadTextApisEnabled` atomic bool. This patch also includes a drive-by build fix for the new `nextUnignoredSiblingOrParent` when `ENABLE_AX_THREAD_TEXT_APIS` is enabled. These calls were missing the `shouldUpdateChildren` parameter, which should be true to match the previous behavior. * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebCore/accessibility/AXCoreObject.cpp: (WebCore::AXCoreObject::nextUnignoredSiblingOrParent const): * Source/WebCore/accessibility/AXCoreObject.h: * Source/WebCore/accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::AXObjectCache): * Source/WebCore/page/DeprecatedGlobalSettings.h: (WebCore::DeprecatedGlobalSettings::setAccessibilityThreadTextApisEnabled): (WebCore::DeprecatedGlobalSettings::accessibilityThreadTextApisEnabled): Canonical link: https://commits.webkit.org/284827@main
- Loading branch information
1 parent
1e32109
commit 18aeb0e
Showing
5 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters