DescriptionFloats on clean lines that are dirtied during layout
This is a follow-up fix to https://codereview.chromium.org/1306733003 with some
opportunistic refactoring to remove duplicate code.
When tying floats to the (current) last line-box in block-flow we may hit a float
in lines previously considered clean but which we have since decided to continue
laying out past (e.g.because one of our floats has changed size). If that happens
we need to add the floats to the linebox rather than bailing early. In
https://codereview.chromium.org/1306733003 we weren't catering for the possibility
that we may have given up on the plan to stop at clean lines.
In the refactoring I got rid of a superfluous bool and refactored some common code
into a function. Now, if we give up on staying within clean lines we immediately
delete them rather than relying on layout state to figure out if we need to do it
later.
BUG=532712
Patch Set 1 #Patch Set 2 : Updated #
Depends on Patchset: Messages
Total messages: 7 (3 generated)
|