github web-platform-tests/wpt merge_pr_49116

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
10 months ago

Reland "layout: Fix trailing collapsible space handling with "

This is a reland of commit 1ff996297a57783a387e0031bc40d3343db3cfcb

Changes from the original CL:
TrailingCollapsibleSpace should store pairs of a Vector and an index
instead of InlineItemResult pointers.
We append InlineItemResult instances to an InlineItemResults vector
after calling ComputeTrailingCollapsibleSpace(), which makes a
TrailingCollapsibleSpace. So an InlineItemResult address can be
changed.

Original change's description:

layout: Fix trailing collapsible space handling with

  • Trailing collapsible space should not be handled in ruby-base lines
    because such lines are contained by another line.
    This CL introduces LineBreaker:: disable_trailing_whitespace_collapsing_.

  • ComputeTrailingCollapsibleSpace() should iterate inside ruby columns
    recursively.

  • RemoveTrailingCollapsibleSpace() and TrailingCollapsibleSpaceWidth()
    should compute ruby column widths correctly.

  • ruby-intra-level-whitespace-001.html passed accidentally. It requires
    and table-like pairing.

Bug: 376097115
Change-Id: I55e4559012ec08c9b423ad8a518890c02862d857
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5996911
Commit-Queue: Koji Ishii kojii@chromium.org
Auto-Submit: Kent Tamura tkent@chromium.org
Reviewed-by: Koji Ishii kojii@chromium.org
Cr-Commit-Position: refs/heads/main@{#1379515}

Bug: 376097115, 377943756, 378102636,
Change-Id: Ida30674a41c8f4d03e5b388c469345e7f36acdbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6010169
Reviewed-by: Koji Ishii kojii@chromium.org
Commit-Queue: Kent Tamura tkent@chromium.org
Cr-Commit-Position: refs/heads/main@{#1381580}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.