Repository navigation
[web-animations] pause animation scheduling while style-originated animations are being updated - #26187
Merged
webkit-commit-queue merged 1 commit intoMar 20, 2024
Conversation
Collaborator
|
EWS run on current version of this PR (hash f4be612) Details |
display property
grorg
approved these changes
Mar 20, 2024
display property
webkit-commit-queue
force-pushed
the
display-animatable-landing-step-two
branch
from
March 20, 2024 18:19
f4be612 to
330a58a
Compare
…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
Collaborator
|
Committed 276414@main (64ea9d3): https://commits.webkit.org/276414@main Reviewed commits have been landed. Closing PR #26187 and removing active labels. |
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.
64ea9d3
330a58a