Use |HasOverflow| to determine needs to add ellipsis
This patch changes |NGInlineLayoutAlgorithm| to use |HasOverflow|, a flag set by |NGLineBreaker|, instead of comparing the size with the available size. |NGLineBreaker| allows lines to overflow up to |LayoutUnit:: Epsilon|, because authors expect monospace to fit to the exact width, but rounding errors may exceed by |Epsilon|. This patch fixes not to add ellipsis when this occurs. Bug: 1134483 Change-Id: I893d20cdbc77af5de26dafa149a5713442751266 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2448069Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#813578}
Showing
Please register or sign in to comment