UIA: Improve perf of TextRange::GetAttributeValue
When UIA was enabled, Narrator was timing out because it calls TextRange::GetAttributeValue a lot when trying to navigate between paragraphs. This function was iterating using AXRange, which is relatively expensive. However, since we're just collecting text attribute values, we don't actually need to iterate over all the text positions... we just need to iterate the anchor positions. This change also introduces a test-case for GetAttributeValue. Bug: 1011057 Change-Id: I624e5fccefe88918ad289c0185a501ef290bde48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838373 Commit-Queue: Ian Prest <iapres@microsoft.com> Reviewed-by:Kurt Catti-Schmidt <kschmi@microsoft.com> Cr-Commit-Position: refs/heads/master@{#702644}
Showing
Please register or sign in to comment