When told to break to honor widows, just do so.
We have some special-code for tall unbreakable lines; if a line in itself is taller than the fragmentainer, don't break before it like we normally do when out of space. This piece of code was here for compatibility reasons (or maybe just to work around another bug), but we need to avoid this special behavior if the line is the one to break before in order to honor a widows requirement. Otherwise we'd get nowhere, stuck in a loop enternally re-laying out, attempting to break before this line but refusing to do so. Bug: 1022348 Change-Id: I2b9f702194dc0b7e6cbf8f37dffa95ea5722d045 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911205Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#714535}
Showing
Please register or sign in to comment