[LayoutNG] Fix hyphens when rewinding occurs
This patch removes |NGLineInfo::LineEndFragment|, which was introduced to support hyphens and ellipsis with the single code. However, ellipsis was changed to use different code, and |LineEndFragment| ended up with non-optimal way to handle hyphens. Although hyphens appear at most once in a line, storing this to |NGLineInfo| makes harder to keep it in sync with the hyphenated item. This patch changes it to a field in |NGInlineItemResult|. Bug: 1015297 Change-Id: I0706cf54bebfa967661dc40123c6dfd5887ff59c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868534 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#708894}
Showing
Please register or sign in to comment