[LayoutNG] Properly stop layout at spanner containers.
In certain cases it was possible to lay out stuff before and after a spanner in the same column, because we didn't detect that something broke. This was due to an ancient out-of-space check in FinalizeForFragmentation(), which sometimes prevented us from finishing fragmentation correctly (the assumption was that if there's zero space left, this fragment can't fit here (so just return early), but that's not necessarily true). Check correctly for out-of-space in the generic fragmentation machinery instead. This addresses a TODO about DCHECKing that we broke inside when encountering a spanner. Bug: 829028 Change-Id: I86af5dcdf01e44c2b0d05d7c6c04821000b25426 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443854 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Alison Maher <almaher@microsoft.com> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#813353}
Showing
Please register or sign in to comment