Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(270890@main): Animation doesn't trigger when custom proper…
…ty initial value matches the first frame https://bugs.webkit.org/show_bug.cgi?id=265160 rdar://118697176 Reviewed by Antoine Quint. If the initial value of a declared custom property is the same as the first frame we would bail out before computing the cascade effect (since nothing changes). Because of this we would fail to set hasPropertiesOverridenAfterAnimation bit and then proceed to optimize away the cascade updates for future frames too. * LayoutTests/imported/w3c/web-platform-tests/css/css-animations/animation-css-variable-dependent-property-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-animations/animation-css-variable-dependent-property.html: Added. * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::createAnimatedElementUpdate): Ensure that we apply the cascade when computing the first frame of animation so we know to not optimize away style updates for the subsequent frames. Canonical link: https://commits.webkit.org/271268@main
- Loading branch information