[css-text] Use always the BreakIterator to compute the intrinsic size
As part of the preferred width computation of LayoutText objects, we have an specific function to implement the min-word-fragment of a text. We are handling the case of break-all and break-word differently, and that's right. However, we are using the BreakIterator only in case of break-all. This caused that we consider valid to break grapheme clusters when computing the min-content size, which leads to wrong values in some cases, like the one described in the bug. This CL changes the mentioned logic to rely always into the BreakIterator, which knows better when is valid to break the text. Bug: 1013775 Change-Id: Ia152d346a61b6b54eaac185a399b0d572e3aba4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857319 Commit-Queue: Javier Fernandez <jfernandez@igalia.com> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#710594}
Showing
Please register or sign in to comment