Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AX ITM: Stop unnecessarily caching 35 live-tree-only properties
https://bugs.webkit.org/show_bug.cgi?id=244766 rdar://problem/99531165 Reviewed by Chris Fleizach. We are currently caching a lot of properties for functions that are useful only in the context of the live tree. This is wasteful in terms of CPU and memory. With this patch, those properties are removed from the AXCoreObject interface and therefore no longer cached for isolated objects. * Source/WebCore/accessibility/AccessibilityNodeObject.cpp: * Source/WebCore/accessibility/AccessibilityNodeObject.h: * Source/WebCore/accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::isSearchField const): (WebCore::AccessibilityObject::isMediaTimeline const): (WebCore::AccessibilityObject::isColumnHeaderCell const): (WebCore::AccessibilityObject::isRowHeaderCell const): (WebCore::AccessibilityObject::isIncrementor const): (WebCore::AccessibilityObject::canvasHasFallbackContent const): (WebCore::AccessibilityObject::speakAsProperty const): (WebCore::AccessibilityObject::isMathText const): (WebCore::AccessibilityObject::isMathNumber const): (WebCore::AccessibilityObject::isMathOperator const): (WebCore::AccessibilityObject::isMathFenceOperator const): (WebCore::AccessibilityObject::isMathSeparatorOperator const): (WebCore::AccessibilityObject::isMathIdentifier const): (WebCore::AccessibilityObject::webAreaObject const): * Source/WebCore/accessibility/AccessibilityObjectInterface.h: * Source/WebCore/accessibility/AccessibilitySlider.h: * Source/WebCore/accessibility/AccessibilityTable.h: * Source/WebCore/accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::columnHeaders): (WebCore::AccessibilityTableCell::rowHeaders): * Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper accessibilityValue]): * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::initializeProperties): (WebCore::AXIsolatedObject::isHovered const): Deleted. * Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h: * Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h: Canonical link: https://commits.webkit.org/254144@main
- Loading branch information
Showing
8 changed files
with
48 additions
and
178 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
Oops, something went wrong.