Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: AXObjectCache::updateIsolatedTree may cause the update of depende…
…nt properties for the same object multiple times unnecessarily. https://bugs.webkit.org/show_bug.cgi?id=267599 <rdar://problem/121065998> Reviewed by Tyler Wilcock. AXObjectCache::updateIsolatedTree calls AXIsolatedTree::updateDependentProperties twice unnecessarily in the following scenario: 1. The passed Vector of { object, notification } contains two LabelChanged notifications. 2. There is another notification in between the two label changes that causes an updateNode. This patch fixes this problem and replaces the struct UpdatedFields that was being used before to prevent duplication of node updates with an OptionSet. This should be somewhat more efficient and less errorprone than the existing implementation. * Source/WebCore/accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::updateIsolatedTree): Canonical link: https://commits.webkit.org/273106@main
- Loading branch information