Bug 1750069 [wpt PR 32369] - Clear fragment item association when any fragments have...
commit630100047e7fda869635563c9f0178c2f48529d1
authorKoji Ishii <kojii@chromium.org>
Thu, 27 Jan 2022 11:14:11 +0000 (27 11:14 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 5 Feb 2022 11:49:06 +0000 (5 11:49 +0000)
treeee17af1aaf24b6f5eed06408ee503e2a84b10f82
parenta71db51dae2f7275c55342e6c2e234bd8ced8631
Bug 1750069 [wpt PR 32369] - Clear fragment item association when any fragments have items, a=testonly

Automatic update from web-platform-tests
Clear fragment item association when any fragments have items

Before this change, |ReplaceLayoutResult| clears associations
only when the first fragment has items.

Block fragmentation can create items only for second or later
fragments; e.g.:
  results[0] does not have |NGFragmentItems|.
  results[1] has |NGFragmentItems|.
This patch changes |ReplaceLayoutResult| to clear associations
in such cases.

Also changes |ClearLayoutResults| for the consistency.

Bug: 1283250
Change-Id: I42411bcbfdb2370d58f1360d22846dad6d94dd24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3386495
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#958855}

--

wpt-commits: 7bd2525f16a90829f8f9ea3498dcdf8b433423e5
wpt-pr: 32369
testing/web-platform/tests/css/css-multicol/crashtests/multicol-floats-in-ifc.html [new file with mode: 0644]