[CSS Shapes] Properly shrink boxes to avoid shape-outside
To determine how much an box needs to shink to avoid a float, the code was only taking into account the first line of the box. This doesn't work when the float has a shape, as it can make it seem like there is more space on the line than there actually is. This patch changes the calculations to take into account the entire height of the box that needs to be shrunk, and thus computes the correct amount of space available. This is a merge of http://trac.webkit.org/changeset/178045 and http://trac.webkit.org/changeset/178064 by Bem Jones-Bey <bjonesbe@adobe.com>. BUG=427989 Review-Url: https://codereview.chromium.org/2380813002 Cr-Commit-Position: refs/heads/master@{#422782}
Showing
Please register or sign in to comment