зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1768192 [wpt PR 33966] - [@container] Resume recalc during reattach for non-rendered elements, a=testonly
Automatic update from web-platform-tests [@container] Resume recalc during reattach for non-rendered elements If we skip the style recalc of some container, then we must immediately resume that recalc if we find out during AttachLayoutTree that we're not going to enter NGBlockNode::Layout after all. We already do this in most cases, but not for non-rendered "leaf-nodes" in the AttachLayoutTree traversal. Marking for reattach is normally not allowed *during* AttachLayoutTree, so an exception is added for this here using AllowMarkForReattachFromRebuildLayoutTreeScope. Also DCHECK whether or not reattach is allowed (StyleEngine: MarkReattachAllowed) more eagerly, to make testing easier. Fixed: 1321471 Change-Id: I539b0394e934de3759608eb0d55b0071416eadea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3629202 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1000959} -- wpt-commits: d955c3e08db86d4cbe725d5f980635e7547c92bc wpt-pr: 33966
This commit is contained in:
Родитель
1954205cbf
Коммит
1b10b8e5fa
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Don't crash with a container query container inside canvas</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-contain-3">
|
||||
<link rel="help" href="https://crbug.com/1321471">
|
||||
<canvas>
|
||||
<div>
|
||||
<div style="container-type: size">
|
||||
<div>Test</div>
|
||||
</div>
|
||||
</div>
|
||||
</canvas>
|
Загрузка…
Ссылка в новой задаче