• Tess Eisenberger's avatar
    [fuchsia][a11y] Apply device pixel scaling to hit tests · 5b5759d0
    Tess Eisenberger authored
    Hit test coordinates from the a11y-manager are relative to the
    registered view's coordinate space. When pixel scaling is on, this
    coordinate space is scaled to be a device-independent space. However,
    Chromium's semantic trees are scaled to the device resolution. This
    patch adds scaling of the received coordinates to compensate for this
    difference.
    
    Note that with this patch, Fuchsia highlights are still quite broken.
    There is likely some degree of scaling issue there, but the more
    major problem is fuchsia:62891.
    
    Fixed: fuchsia:59633
    Change-Id: I1e4217592a48fe284a60b5edb294c21b855744a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2508322
    Commit-Queue: Tess Eisenberger <teisenbe@google.com>
    Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
    Reviewed-by: default avatarSharon Yang <yangsharon@chromium.org>
    Auto-Submit: Tess Eisenberger <teisenbe@google.com>
    Cr-Commit-Position: refs/heads/master@{#826637}
    5b5759d0
accessibility_bridge.h 5.31 KB