[LayoutNG] Handle unset column balancing results correctly.
Handle situations where nobody propagates "tallest unbreakable or "minimal space shortage" to a fragment builder. This happens for childless and/or monolithic content. Simplify the DCHECKing for this mechanism, and make it return the correct values, if nobody has set them. We used to fail a DCHECK in TallestUnbreakableBlockSize() (called from NGBoxFragmentBuilder::PropagateBreak()), and we would also return the incorrect tallest_unbreakable_block_size if it was unset (it was initialized to LayoutUnit::Max()). Bug: 829028 Change-Id: Icaf3da7ad3b61b2a317f39dbc470a2512f9f992e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404581 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#806210}
Showing
Please register or sign in to comment