Skip to content

[web-animations] add interpolation support for the display property - #22974

Closed
graouts wants to merge 2 commits into
WebKit:mainfrom
graouts:display-animatable
Closed

graouts wants to merge 2 commits into
WebKit:mainfrom
graouts:display-animatable

Conversation

@graouts

@graouts graouts commented Jan 19, 2024 •

Copy link
Copy Markdown
Contributor

22a69d3

[web-animations] add interpolation support for the `display` property
https://bugs.webkit.org/show_bug.cgi?id=267762
rdar://121662911

Reviewed by NOBODY (OOPS!).

* LayoutTests/imported/blink/fast/css-generated-content/pseudo-animation-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-none-dont-cancel.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/starting-style-rule-basic-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/starting-style-rule-pseudo-elements-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/display.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
(WebCore::AnimationPropertyWrapperBase::normalizesProgressForDiscreteInterpolation const):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
(WebCore::blendStandardProperty):
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::animationTimingDidChange):
(WebCore::DocumentTimeline::styleOriginatedAnimationsWereCreated):
* Source/WebCore/animation/DocumentTimeline.h:
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::ticksContinuouslyWhileActive const):
* 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:
(WebCore::WebAnimation::isEffectInvalidationSuspended const):
(WebCore::WebAnimation::isEffectInvalidationSuspended): Deleted.
* Source/WebCore/animation/WebAnimationTypes.h:
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):
* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateElementRenderer):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveElement):
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):
* Source/WebCore/style/StyleUpdate.h:
* Source/WebCore/style/Styleable.cpp:
(WebCore::Styleable::cancelStyleOriginatedAnimations const):
(WebCore::Styleable::updateCSSAnimations const):
(WebCore::updateCSSTransitionsForStyleableAndProperty):
(WebCore::Styleable::updateCSSTransitions const):
* Source/WebCore/style/Styleable.h:
(WebCore::Styleable::cancelStyleOriginatedAnimations):

8e8229a

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ❌ 🛠 wincairo
❌ 🧪 bindings ❌ 🛠 ios-sim ✅ 🛠 mac-AS-debug   🧪 wpe-wk2
✅ 🧪 webkitperl ❌ 🧪 ios-wk2   🧪 api-mac   🧪 api-wpe
❌ 🧪 ios-wk2-wpt   🧪 mac-wk1 ❌ 🛠 wpe-skia
❌ 🧪 api-ios   🧪 mac-wk2 ❌ 🛠 gtk
❌ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ❌ 🧪 gtk-wk2
  🛠 tv-sim   🧪 mac-wk2-stress ❌ 🧪 api-gtk
  🛠 watch
❌ 🛠 watch-sim

@graouts graouts self-assigned this Jan 19, 2024
@graouts graouts added the Animations Bugs related to CSS + SVG animations and transitions label Jan 19, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 19, 2024
@graouts
graouts force-pushed the display-animatable branch from 983748f to 5948882 Compare January 19, 2024 14:59
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Jan 19, 2024
@graouts
graouts force-pushed the display-animatable branch from 5948882 to 9430465 Compare January 19, 2024 15:13
@graouts
graouts force-pushed the display-animatable branch from 9430465 to 573333d Compare January 19, 2024 15:42
@graouts
graouts force-pushed the display-animatable branch from 573333d to 8dea365 Compare January 19, 2024 16:20
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 19, 2024
@graouts
graouts force-pushed the display-animatable branch from dbb9270 to 219813e Compare January 22, 2024 08:05
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Jan 22, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 22, 2024
@graouts
graouts force-pushed the display-animatable branch from 219813e to ab91503 Compare January 24, 2024 17:42
@graouts
graouts force-pushed the display-animatable branch from ab91503 to 767aa07 Compare January 29, 2024 16:29
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Jan 29, 2024
@graouts
graouts force-pushed the display-animatable branch from 767aa07 to df4b2c8 Compare January 29, 2024 16:32
@graouts
graouts force-pushed the display-animatable branch from df4b2c8 to 7bed9d8 Compare January 29, 2024 16:53
@graouts
graouts force-pushed the display-animatable branch from 85f9ebe to 740f4bc Compare March 7, 2024 07:41
@graouts
graouts force-pushed the display-animatable branch from 740f4bc to 0817e72 Compare March 16, 2024 18:44
@graouts
graouts force-pushed the display-animatable branch from 0817e72 to 46659b3 Compare March 18, 2024 08:06
@graouts
graouts force-pushed the display-animatable branch from 46659b3 to 1194707 Compare March 18, 2024 16:46
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Mar 18, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Mar 18, 2024
@graouts
graouts force-pushed the display-animatable branch from 1194707 to bf9eb7a Compare March 19, 2024 13:54
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Mar 19, 2024
@graouts graouts changed the title [web-animations] add interpolation support for the display property Replace renderOrDisplayContentsStyle() with calls to a new renderOrDisplayContentsOrNoneStyle(), except in Style::TreeResolver::createAnimatedElementUpdate() where we must ignore changes made to the style while display: none was set. Mar 19, 2024
@graouts
graouts force-pushed the display-animatable branch from ba81dfc to c1e82ba Compare March 19, 2024 19:34
@graouts graouts changed the title Replace renderOrDisplayContentsStyle() with calls to a new renderOrDisplayContentsOrNoneStyle(), except in Style::TreeResolver::createAnimatedElementUpdate() where we must ignore changes made to the style while display: none was set. [web-animations] add interpolation support for the display property Mar 19, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Mar 19, 2024
@graouts
graouts force-pushed the display-animatable branch from c1e82ba to 8912bcc Compare March 20, 2024 10:16
@graouts graouts removed the merging-blocked Applied to prevent a change from being merged label Mar 20, 2024
@graouts
graouts force-pushed the display-animatable branch from 8912bcc to f7921d2 Compare March 20, 2024 18:11
https://bugs.webkit.org/show_bug.cgi?id=267762
rdar://121662911

Reviewed by NOBODY (OOPS!).

* LayoutTests/imported/blink/fast/css-generated-content/pseudo-animation-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-none-dont-cancel.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/starting-style-rule-basic-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/starting-style-rule-pseudo-elements-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/display.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
(WebCore::AnimationPropertyWrapperBase::normalizesProgressForDiscreteInterpolation const):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
(WebCore::blendStandardProperty):
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::animationTimingDidChange):
(WebCore::DocumentTimeline::styleOriginatedAnimationsWereCreated):
* Source/WebCore/animation/DocumentTimeline.h:
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::ticksContinuouslyWhileActive const):
* 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:
(WebCore::WebAnimation::isEffectInvalidationSuspended const):
(WebCore::WebAnimation::isEffectInvalidationSuspended): Deleted.
* Source/WebCore/animation/WebAnimationTypes.h:
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):
* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateElementRenderer):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveElement):
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):
* Source/WebCore/style/StyleUpdate.h:
* Source/WebCore/style/Styleable.cpp:
(WebCore::Styleable::cancelStyleOriginatedAnimations const):
(WebCore::Styleable::updateCSSAnimations const):
(WebCore::updateCSSTransitionsForStyleableAndProperty):
(WebCore::Styleable::updateCSSTransitions const):
* Source/WebCore/style/Styleable.h:
(WebCore::Styleable::cancelStyleOriginatedAnimations):
@graouts
graouts force-pushed the display-animatable branch from f7921d2 to 22a69d3 Compare March 20, 2024 20:31
@graouts

graouts commented Mar 21, 2024

Copy link
Copy Markdown
Contributor Author

Closing this PR since this patch has been split across various smaller pull requests: #26187, #26231, #26238 and #26248.

@graouts graouts closed this Mar 21, 2024
@graouts
graouts deleted the display-animatable branch March 21, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Animations Bugs related to CSS + SVG animations and transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants