Summary: | AX: iOS: using AXAttributeCacheEnabler is too slow for every accessibilityElementAtIndex: | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | chris fleizach <cfleizach> | ||||
Component: | Accessibility | Assignee: | chris fleizach <cfleizach> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | aboxhall, apinheiro, commit-queue, dmazzoni, jcraig, jdiggs, mario, samuel_white, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
chris fleizach
2014-05-17 23:42:52 PDT
Created attachment 231650 [details]
patch
Comment on attachment 231650 [details]
patch
Who calls enableAttributeCaching and disableAttributeCaching, the OS?
(In reply to comment #2) > (From update of attachment 231650 [details]) > Who calls enableAttributeCaching and disableAttributeCaching, the OS? The accessibility framework that is on the app side knows when a list of elements is requested. That framework is able to start and stop the cache for us Comment on attachment 231650 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=231650&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:346 > + m_object->axObjectCache()->startCachingComputedObjectAttributesUntilTreeMutates(); Perhaps you want to check whether axObjectCache() returns null here before using it? > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:351 > + m_object->axObjectCache()->stopCachingComputedObjectAttributes(); Same comment here (In reply to comment #4) > (From update of attachment 231650 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=231650&action=review > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:346 > > + m_object->axObjectCache()->startCachingComputedObjectAttributesUntilTreeMutates(); > > Perhaps you want to check whether axObjectCache() returns null here before using it? > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:351 > > + m_object->axObjectCache()->stopCachingComputedObjectAttributes(); > > Same comment here Done. Thanks http://trac.webkit.org/changeset/169047 |