DescriptionMove LayoutDeprecatedFlexibleBox-specific line handling.
This is sort-of exotic functionality, in that it checks if the blocks have
visibility:visible and auto height, so it fits better together with the
LayoutDeprecatedFlexibleBox implementation. Nobody else needs this.
The pagination code also needs to count lines, though, so I kept lineCount(),
but moved it from LayoutBlock to LayoutBlockFlow, and threw away the parts that
weren't needed (visibility check, recursing into child block flows, among other
things).
On the LayoutDeprecatedFlexibleBox, there are some changes. The functions now
operate on LayoutBlockFlow instead of LayoutBlock, since it's dealing with
lines. As a result, we need to replace some former isLayoutBlock() checks with
isLayoutBlockFlow(). A similar change landed in WebKit years ago [1], so it
should be safe.
[1] https://bugs.webkit.org/show_bug.cgi?id=122969
BUG=302024
Committed: https://crrev.com/f42912bb9538bbd7c9817c4a210dd202b69be29f
Cr-Commit-Position: refs/heads/master@{#391492}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Const all the things! #
Messages
Total messages: 10 (4 generated)
|