• Morten Stenshorne's avatar
    Reland: Improve used column count allowance calculation. · d123c14a
    Morten Stenshorne authored
    Better detection of "legitimate" reasons to use many columns. Let the
    allowance be based on the amount of "content". The more content (lines
    or boxes) inside a multicol container, the more columns will be allowed.
    We used to base it on the column height, but it turned out that it
    wasn't good enough. Also, there are legitimate reasons to use more than
    500 columns in some cases, so increase the limit to 2000. With the
    current implementation, this may get very slow, because of quadratic
    performance complexity, presumably somewhere in paint code.
    
    One multicol regressed in LayoutNG. Not sure why. It shouldn't have
    passed in the first place.
    
    This CL was previously landed as
    https://chromium-review.googlesource.com/c/chromium/src/+/1057629 and
    then reverted because of test flakiness. This new CL has reduced the
    number of columns in those tests, so that the tests don't occasionally
    time out on slow bots.
    
    Bug: 808189,845155
    Change-Id: I55d560faba73128518a689ae38f628ee89e58568
    Reviewed-on: https://chromium-review.googlesource.com/1068929
    Commit-Queue: Emil A Eklund <eae@chromium.org>
    Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
    Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#560820}
    d123c14a
scrollable-basic.html 295 Bytes