• Kent Tamura's avatar
    Fix a crash with <ruby> followed by a TAB · 7b16dac8
    Kent Tamura authored
    The only callsite of CommitPendingEndOverhang() is
    NGLineBreaker::HandleText(), and it is called for NGInlineItem::kControl
    for a TAB character as well as NGInlineItem::kText. So,
    CommitPendingEndOverhang() should take care of NGInlineItem::kControl.
    
    This CL updates CommitPendingEndOverhang() so that a ruby annotation
    text doesn't hang over a TAB character.
    
    This CL also adds a stream printer for blink::NGLineInfo.
    
    Bug: 1138943
    Change-Id: I478e93086f449b8e4cda4c8828d34f4111d80ea6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483739
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Commit-Queue: Koji Ishii <kojii@chromium.org>
    Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#818369}
    7b16dac8
following-tab-crash.html 614 Bytes