[EditingNG] Calculate baseline for empty editable
This patch changes |NGBlockLayoutAlgorithm::Layout()| to calculate baseline offset for empty line then set it |NGPhysicalBoxFragment| to allow flex layout algorithm to use valid baseline offset, e.g. "align-items: baseline" CSS property. This patch also introduces |LayoutBlock::BaselineForEmptyLine()| to share baseline offset calculation with legacy latyout. Note: The test[1][2] verify this change. [1] third_party/blink/web_tests/css3/flexbox/baseline-for-empty-line.html [2] third_party/blink/web_tests/inline-block/contenteditable-baseline.html Bug: 707656 Change-Id: I2a19fb3e457925c03b34ee509b80ba15dff523b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2259675 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#781280}
Showing
Please register or sign in to comment