DescriptionKeep block pagination struts after layout, and store them before any type of break.
Any block-level object (block container, block-displayed image, for instance)
may now have a strut, so this is stored in the rare data section of LayoutBox.
Added layout tests for things that I nearly broke or wanted to make sure that I
didn't break, while working on this.
No behavioral changes are intended with this CL, and because struts aren't
web-exposed, I added a few "unit tests" for pagination struts.
This is a preparatory patch for refactoring the column balancing
implementation to do everything after layout, instead of during layout (will
fix bugs, get rid of the rather esoteric setPageBreak() calls scattered around,
and also make it easier to do optimizations in the future, instead of doing
almost unconditional deep layout passes when doing multicol or printing).
R=jchaffraix@chromium.org,leviw@chromium.org
Committed: https://crrev.com/d956b23cdf5ea03eb1cf350cb5ca827745b8310a
Cr-Commit-Position: refs/heads/master@{#352804}
Patch Set 1 #
Total comments: 6
Patch Set 2 : code review #Messages
Total messages: 8 (1 generated)
|