Add 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 Review URL: https://codereview.chromium.org/1460203003 Cr-Commit-Position: refs/heads/master@{#361084}
Showing
Please register or sign in to comment