Fix a crash with <ruby> followed by a TAB
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:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#818369}
Showing
Please register or sign in to comment