[LayoutNG] Run CreateLine() even for empty lines
When a line box is [certain zero-height line boxes], most of line layout algorithm is not necessary and that we have a fast code-path for that case. However, there are some edge cases where we still need to create box fragments such as when the line has a containing block for out-of-flow objects. This patch runs the normal line layout algorithm even when the line box is "empty". We could detect when the algorithm is really needed, and/or run only necessary part of the algoirithm for the performance in future. [certain zero-height line boxes]: https://drafts.csswg.org/css2/visuren.html#phantom-line-box Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I4d7c6a6b2a3155f1eb5c5ae2f17b78b89bfb833a Reviewed-on: https://chromium-review.googlesource.com/1121656 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#571807}
Showing
Please register or sign in to comment