[LayoutNG] Handle auto column-count correctly.
Column balancing failed when column-count was auto (and column-width was non-auto). The ResolveUsedColumnCount() function that takes a ComputedStyle parameter forgot to set column_count to 0 if computed column-count was auto. The other ResolveUsedColumnCount() function expects this, or it will pretend that column-count is 1 (since that would be what's passed). ResolveUsedColumnInlineSize() has this right, and we also have unit tests that pass 0 when column-count is supposed to be auto. Fixes 20 tests. Bug: 829028 Change-Id: I47f790ca6aa8566d74b99bdaa16f857d29c2084b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388282 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#803870}
Showing
Please register or sign in to comment