Switched AXPosition in Blink to use Layout NG offset mapping
AXPosition now uses the deprecated text iterator class for translating DOM offsets to text offsets, and for calculating text lengths with all uncompressed white space removed. A text offset in the accessibility tree might not have the same value as the DOM offset for an equivalent position in the DOM tree, because the DOM may have extra white space that should be collapsed. This patch switches to using the NGOffsetMapping class in Layout NG for all such calculations. AX-Relnotes: n/a. R=dmazzoni@chromium.org, aleventhal@chromium.org Bug: 1008031 Change-Id: I6953355e83b0953ffa341207bbdde0249cd1b74f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2384471 Commit-Queue: Nektarios Paisios <nektar@chromium.org> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#803471}
Showing
Please register or sign in to comment