Update the CSS3 column width and count algorithm to match the spec. I honestly have no idea what the differences are. None of our tests change results. I just want the code to match the pseudo-algorithm in the latest draft.
Created attachment 88508 [details]
Comment on attachment 88508 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=88508&action=review
> + desiredColumnCount = max(1, (int)((float)(availWidth + colGap) / (colWidth + colGap)));
To avoid the (int) cast you could use max<int>().
> + desiredColumnCount = min(colCount, (int)((float)(availWidth + colGap) / (colWidth + colGap)));
Fixed in r83099.
Attachment 88508 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/8348315