Bug 1752790 [wpt PR 32615] - Abort Element::SetNeedsAnimationStyleRecalc during Ensur...
commitbaea2c62fa3f1487f8ac6fd463dede4949c552dd
authorAnders Hartvoll Ruud <andruud@chromium.org>
Sat, 26 Feb 2022 22:07:22 +0000 (26 22:07 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 7 Mar 2022 14:48:02 +0000 (7 14:48 +0000)
tree217f3cae24b077668ca1fddf12ee657ac113a99f
parent5dd544c237e217fd7ea631caa17c11bdf546afc3
Bug 1752790 [wpt PR 32615] - Abort Element::SetNeedsAnimationStyleRecalc during EnsureComputedStyle, a=testonly

Automatic update from web-platform-tests
Abort Element::SetNeedsAnimationStyleRecalc during EnsureComputedStyle

The animations machinery currently calls Element::
SetNeedsAnimationStyleRecalc during style resolution, but we early-out
from that function if Document::InStyleRecalc is true. This does
however not cover Element::EnsureComputedStyle, which means that
calling that function can actually mark elements for style recalc.

To address this, let InStyleRecalc be 'true' during
EnsureComputedStyle.

Fixed: 1290016
Change-Id: Ic25f2f7f22f3d3960d4ee0726c16d9a7a91f24b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3423875
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#966140}

--

wpt-commits: e6a9666be4b0bbaa2f6726a0726e6b47806803e9
wpt-pr: 32615
testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-on-marquee-parent-crash.html [new file with mode: 0644]