1. 04 Oct, 2019 1 commit
    • Ian Prest's avatar
      UIA: Improve perf of TextRange::GetAttributeValue · d1830bbc
      Ian Prest authored
      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: default avatarKurt Catti-Schmidt <kschmi@microsoft.com>
      Cr-Commit-Position: refs/heads/master@{#702644}
      d1830bbc
  2. 03 Oct, 2019 39 commits