mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
6047332ae6
In FindBestBalanceBSize(), suppose we have aUnboundedLastColumn equals to true, and the measuring reflow of all the columns is feasible. This setting represents the most common scenario of multi-column layout as the multi-column footnote on Wikipedia. We used to use 600 as the extra block-size added to the estimate column block-size. However, if the first guess of the column block-size, say G1, is infeasible, the feasible block-size is still bound to the sum of all columns S. That leaves us a massive range between G1 and S to search. We don't want to use a larger fixed extra block-size. Although it can reduce the possibility of failing the first guess, but for cases where a smaller extra block-size is sufficient, it increases the search range and the iteration number before the binary search converges. Instead, we can spend the first few iterations doubling the extra block-size E added to the estimate column block-size until we find the first feasible block-size. This gives us a smaller upper bound S / N + E, where N is the number of columns. Differential Revision: https://phabricator.services.mozilla.com/D80571 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |