Repository navigation
[web-animations] add support for canceling style-originated animations silently - #26231
Merged
webkit-commit-queue merged 1 commit intoMar 21, 2024
Conversation
Collaborator
|
EWS run on current version of this PR (hash ebfbed8) Details |
anttijk
approved these changes
Mar 21, 2024
…s silently https://bugs.webkit.org/show_bug.cgi?id=271365 Reviewed by Antti Koivisto. When we will be adding animation support for the `display` property (see bug 267762) we will need to resolve animations even when the underlying style has `display: none` to see whether animations yield a different value. In that process, we may create style-originated animations that will ultimately be canceled once we're certain `display: none` is still set. In 276414@main we created a list of style-originated animations created during a style update. We now add support for canceling that group of style-originated animations in a way that is not script observable, or "silently" in Web Animations parlance. Once we get to add animation support for the `display` property proper, we will add a call to `StyleOriginatedAnimation::cancelFromStyle()` with the list of newly-created style-originated animations that require silent cancelation. * Source/WebCore/animation/StyleOriginatedAnimation.cpp: (WebCore::StyleOriginatedAnimation::cancel): (WebCore::StyleOriginatedAnimation::cancelFromStyle): * Source/WebCore/animation/StyleOriginatedAnimation.h: * Source/WebCore/animation/WebAnimation.cpp: (WebCore::WebAnimation::cancel): * Source/WebCore/animation/WebAnimation.h: * Source/WebCore/style/Styleable.cpp: (WebCore::Styleable::cancelStyleOriginatedAnimations const): * Source/WebCore/style/Styleable.h: (WebCore::Styleable::cancelStyleOriginatedAnimations): Canonical link: https://commits.webkit.org/276453@main
webkit-commit-queue
force-pushed
the
display-animatable-silently-cancel-style-originated-animations
branch
from
March 21, 2024 10:29
ebfbed8 to
28a06fc
Compare
Collaborator
|
Committed 276453@main (28a06fc): https://commits.webkit.org/276453@main Reviewed commits have been landed. Closing PR #26231 and removing active labels. |
graouts
deleted the
display-animatable-silently-cancel-style-originated-animations
branch
March 21, 2024 10:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
28a06fc
ebfbed8
🧪 wpe-wk2🧪 mac-wk1🧪 gtk-wk2🧪 api-gtk