Bug 1766851 [wpt PR 33844] - Require LayoutBox to defer style recalc to layout-time...
commit21bfb0055c53e2e3148de1dd43e837211721399a
authorAnders Hartvoll Ruud <andruud@chromium.org>
Sat, 7 May 2022 11:43:32 +0000 (7 11:43 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 15 May 2022 20:20:51 +0000 (15 20:20 +0000)
tree794e06a3439f47eba21b4e795a4e8c88638c8556
parente2206232d8de07446f988dd8075a0149f96bf292
Bug 1766851 [wpt PR 33844] - Require LayoutBox to defer style recalc to layout-time, a=testonly

Automatic update from web-platform-tests
Require LayoutBox to defer style recalc to layout-time

A LayoutBox is required for NGBlockNode, so eagerly recalc skipped
subtrees during layout-tree building if we did not get a LayoutBox.

Additionally, check NGBlockNode::CanUseNewLayout, as this is checked
by NGBlockNode::Layout to early-out at the start of the function.

*Also*, rename MaySkipNGBlockNodeLayout to something which does not
involve the word "skip". It's nice to reserve "skip" in this context
to refer to the style recalc being skipped for a certain set of
descendants.

Fixed: 1313444
Change-Id: Idc875a3635eedb61401e91e9fab90b713f693b21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3613303
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#997680}

--

wpt-commits: 0f76f50b7410ecd5da5998187efda1dcdb5ff475
wpt-pr: 33844
testing/web-platform/tests/css/css-contain/container-queries/crashtests/br-crash.html [new file with mode: 0644]