-
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: Moving testing only attributes in WebAccessibilityObjectWrapperMa…
…c.mm to attributeValueForTesting https://bugs.webkit.org/show_bug.cgi?id=273711 rdar://problem/127512021 Reviewed by Chris Fleizach. This is a tiny performance improvement and code cleanup. This patch also includes another performance improvement in AXObjectCache::handleTextChanged. Prior to this patch, it used to fire notification AXTextUnderElementChanged when text changed underneath an AccessibilityRole::ListItem, in turn causing expensive isolated tree property updates for the list item. This is completely unnecessary, as AccessibilityRole::ListItem does not return true for dependsOnTextUnderElement(). * Source/WebCore/accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::handleTextChanged): * Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): (attributeValueForTesting): Canonical link: https://commits.webkit.org/278375@main
- Loading branch information
Showing
2 changed files
with
23 additions
and
30 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