• Yoshifumi Inoue's avatar
    Make ComputeNGLocalCaretRect() to use text direction of line box · dae891fc
    Yoshifumi Inoue authored
    This patch changes |ComputeNGLocalCaretRect()| to use text direction of
    line box instead of containing block to handle dir=auto correctly to
    pass the test "editing/caret/caret-direction-auto.html" for TextAreaNG.
    
    Before this patch, |ComputeNGLocalCaretRect()| limits caret position to
    right edge of line box when dir=auto and text content leads direction as
    RTL even if direction of line containing caret is LTR.
    
    After this patch, |ComputeNGLocalCaretRect()| uses direction of line to
    limit caret position correctly.
    
    Bug: 1137666
    Change-Id: Id8c8245833955427b45a286a2d742c6d31d492eb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2497962
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
    Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#820682}
    dae891fc
TestExpectations 544 KB