DescriptionAdd marginBeforeIfFloating() to LayoutBlockFlow.
Floats' margins need special attention for pagination, because they are not to
be eaten by page or column boundaries.
Clamp strut to >= 0 in LayoutBlockFlow::setPaginationStrutPropagatedFromChild()
instead of doing it (poorly) in calculateStrutForPropagation().
Removed calculateStrutForPropagation(), because there was hardly anything left
there now (and this lets us make marginBeforeIfFloating() private). This
function also turned out not to be universally usable, since we were already
calculating the strut on our own in adjustLinePositionForPagination() in one
case.
R=leviw@chromium.org
Committed: https://crrev.com/d27423b8964575c526a9eec2e4c672f9d2036245
Cr-Commit-Position: refs/heads/master@{#361084}
Patch Set 1 #
Total comments: 4
Patch Set 2 : code review #
Messages
Total messages: 8 (2 generated)
|