Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX: AccessibilityNodeObject never resets m_childrenDirty to false
https://bugs.webkit.org/show_bug.cgi?id=245322 rdar://problem/100073372 Reviewed by Chris Fleizach. In https://bugs.webkit.org/show_bug.cgi?id=245212, we moved these methods from AccessibilityRenderObject to AccessibilityNodeObject: - updateChildrenIfNecessary - setNeedsToUpdateChildren - needsToUpdateChildren - setNeedsToUpdateSubtree But crucially, we did not move the implementation of clearChildren, which is what resets m_childrenDirty to false when necessary, causing a performance issue (not a correctness issue) for these objects. * Source/WebCore/accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::clearChildren): * Source/WebCore/accessibility/AccessibilityNodeObject.h: * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::clearChildren): Deleted. * Source/WebCore/accessibility/AccessibilityRenderObject.h: Canonical link: https://commits.webkit.org/254600@main
- Loading branch information
Showing
4 changed files
with
7 additions
and
8 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