-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[web-animations] pause animation scheduling while style-originated animations are being updated #26187
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
graouts:display-animatable-landing-step-two
Mar 20, 2024
Merged
[web-animations] pause animation scheduling while style-originated animations are being updated #26187
webkit-commit-queue
merged 1 commit into
WebKit:main
from
graouts:display-animatable-landing-step-two
Mar 20, 2024
Conversation
This file contains 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
graouts
added
the
Animations
Bugs related to CSS + SVG animations and transitions
label
Mar 20, 2024
EWS run on current version of this PR (hash f4be612) |
graouts
changed the title
[web-animations] pause animation scheduling while style-originated animations are being updated
[web-animations] add interpolation support for the Mar 20, 2024
display
property
grorg
approved these changes
Mar 20, 2024
graouts
changed the title
[web-animations] add interpolation support for the
[web-animations] pause animation scheduling while style-originated animations are being updated
Mar 20, 2024
display
property
graouts
added
the
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
label
Mar 20, 2024
webkit-commit-queue
force-pushed
the
display-animatable-landing-step-two
branch
from
March 20, 2024 18:19
f4be612
to
330a58a
Compare
graouts
added
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
and removed
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
labels
Mar 20, 2024
…imations are being updated https://bugs.webkit.org/show_bug.cgi?id=271311 Reviewed by Dean Jackson. 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. As it stands, the creation of a style-originated animation will immediately lead to animation scheduling and possibly be observable through Web content by the dispatch of animation events. As such, in preparation for supporting the animation of the `display` property, we now pause animation scheduling while we consider new style-originated animations. We now store new animations that we create in a list as we start the `Style::TreeResolver::createAnimatedElementUpdate()` process and once it completes, provided that list is not empty, we notify the `DocumentTimeline` to schedule animation resolution in a single operation. The purpose of using a list rather than just a boolean flag to signal style-originated animation creation is that, as mentioned above, we will need to silently cancel those newly created animations should the animated style have `display: none`. * Source/WebCore/animation/DocumentTimeline.cpp: (WebCore::DocumentTimeline::animationTimingDidChange): (WebCore::DocumentTimeline::styleOriginatedAnimationsWereCreated): * Source/WebCore/animation/DocumentTimeline.h: * Source/WebCore/animation/WebAnimation.h: (WebCore::WebAnimation::isEffectInvalidationSuspended const): (WebCore::WebAnimation::isEffectInvalidationSuspended): Deleted. * Source/WebCore/animation/WebAnimationTypes.h: * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::createAnimatedElementUpdate): * Source/WebCore/style/Styleable.cpp: (WebCore::Styleable::updateCSSAnimations const): (WebCore::updateCSSTransitionsForStyleableAndProperty): (WebCore::Styleable::updateCSSTransitions const): * Source/WebCore/style/Styleable.h: Canonical link: https://commits.webkit.org/276414@main
webkit-commit-queue
force-pushed
the
display-animatable-landing-step-two
branch
from
March 20, 2024 20:27
330a58a
to
64ea9d3
Compare
Committed 276414@main (64ea9d3): https://commits.webkit.org/276414@main Reviewed commits have been landed. Closing PR #26187 and removing active labels. |
webkit-commit-queue
removed
the
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
label
Mar 20, 2024
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.
64ea9d3
330a58a