• Nektarios Paisios's avatar
    Switched AXPosition in Blink to use Layout NG offset mapping · 8b9992b2
    Nektarios Paisios authored
    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: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#803471}
    8b9992b2
ax_position.cc 41.9 KB