[LayoutNG] Fix block-level baseline for flipped-lines (vertical-lr)
Following CL:1074989 that fixed inline-level baseline for flipped-lines (vertical-lr), this patch fixes block-level baselines. When NGBlockLayoutAlgorithm propagates baselines from its child line boxes, line boxes and font metrics are in the [line-relative] coordinates. This needs to be converted to [flow-relative] coordinates when adding to box fragments. [flow-relative]: https://drafts.csswg.org/css-writing-modes-3/#logical-directions [line-relative]: https://drafts.csswg.org/css-writing-modes-3/#line-directions Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: If4ddc2374cc0351120ae672614a32f38bb1f3bc8 Reviewed-on: https://chromium-review.googlesource.com/1087192Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#567092}
Showing
Please register or sign in to comment