• Nektarios Paisios's avatar
    Take boundary direction into account when computing parent equivalent positions · 6ff04804
    Nektarios Paisios authored
    Imagine the following scenario:
    1. An embedded object, e.g. a link, spans multiple lines.
    2. There is some text before and after the embedded object.
    "Before <embedded_object> after".
    
    In IA2 and ATK, embedded objects are represented by an embedded object character in their parent's text.
    
    Calling IAccessibleText::get_textAtOffset, or an equivalent API, and trying to determine the bounds
    of the current line should return an offset range that includes the embedded object character, both when the call is made
    somewhere inside the text "Before" as well as when the call is made somewhere inside the text "after".
    This is necessary in order to signal to ATs that the embedded object starts somewhere inside the first line
    and also that it ends somewhere inside the last line.
    Otherwise, ATs Jaws and NVDA read only part of the last line when moving by line.
    R=aleventhal@chromium.org, dmazzoni@chromium.org
    
    Change-Id: I6f141e4fff5f60c05edbf80ff3f19ba920be7c31
    Bug: 1028301
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934312
    Commit-Queue: Nektarios Paisios <nektar@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#720572}
    6ff04804
ax_position.h 129 KB