[LayoutNG] Preserve inline box fragment when having atomic inline child
If an inline element contains an atomic inline child, the height of the child is often different from its parent, in which case the parent's rect is no longer a simple union of its child rects. Currently, LayoutNG fails to handle this. This patch ensures box fragment creation in this case so that we can get correct rects for the parent. Tests: - A lot of tests have wrong baselines, where inline elements are dumped with wrong sizes. This patch corrects them - 4 relevant hit test failures are fixed - Unfortunately, this patch reveals some existing bugs or unimplemented features. As a result, 7 tests regressed... Bug: 851075 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I4bf26ac35542d03a8bf01de1ffb9d4b2cdbac96b Reviewed-on: https://chromium-review.googlesource.com/1108509 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#570132}
Showing
Please register or sign in to comment