Low-hanging optimization for ITextRangeProvider::ExpandToEnclosingUnit
|LowestCommonAnchor| is always cheaper than |LowestCommonAncestor| when the ancestor position data is not needed. AXPlatformNodeTextRangeProviderWin::ExpandToEnclosingUnit for TextUnit_Page only needs the |LowestCommonAnchor| to know the result of |AXNode::OwnerTree()->HasPaginationSupport|. Bug: 928948 Change-Id: Ida1926da0c1d54b2a9b57abd1867862daa4b4984 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815350 Commit-Queue: Adam Ettenberger <adettenb@microsoft.com> Reviewed-by:Kevin Babbitt <kbabbitt@microsoft.com> Cr-Commit-Position: refs/heads/master@{#699032}
Showing
Please register or sign in to comment