-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: AXObjectCache::dirtyIsolatedTreeRelations is called whether relat…
…ions are modified or not. https://bugs.webkit.org/show_bug.cgi?id=267875 <rdar://problem/121389682> Reviewed by Tyler Wilcock. This causes unnecessary updates to the isolated tree. This patch fixes the issue by making the addRelation and removeRelation method to return a boolean indicating whether the relationships were actually changed. * Source/WebCore/accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::remove): (WebCore::AXObjectCache::updateLabelFor): (WebCore::AXObjectCache::updateLabeledBy): (WebCore::AXObjectCache::addRelation): (WebCore::AXObjectCache::removeAllRelations): (WebCore::AXObjectCache::removeRelation): (WebCore::AXObjectCache::updateRelationsForTree): (WebCore::AXObjectCache::addLabelForRelation): (WebCore::AXObjectCache::updateRelations): (WebCore::AXObjectCache::removeRelations): Renamed. (WebCore::AXObjectCache::addRelations): Renamed. * Source/WebCore/accessibility/AXObjectCache.h: Canonical link: https://commits.webkit.org/273341@main
- Loading branch information
1 parent
d7336d4
commit 36de400
Showing
2 changed files
with
67 additions
and
53 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