For AccessibilityRole::StaticText objects, descriptionAttributeValue and titleAttributeValue are hardcoded to return empty string. We know an object's role value before going to the main-thread, so let's use this information. Also, accessibilityHitTest goes to the main-thread to access AXCoreObject::widget without checking AXCoreObject::isWidget first, which incurs unnecessary main-thread hits for things that are not widgets.
<rdar://problem/106619115>
Created attachment 465404 [details] Patch
Created attachment 465405 [details] Patch
Created attachment 465410 [details] Patch
Committed 261642@main (9d4124105e23): <https://commits.webkit.org/261642@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465410 [details].