[webkit-changes] [WebKit/WebKit] 9d8983: [css-anchor-position-1] Support animations
Antti Koivisto
noreply at github.com
Mon Oct 21 09:05:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9d89836c54083add399369a4bd71c52f42f70707
https://github.com/WebKit/WebKit/commit/9d89836c54083add399369a4bd71c52f42f70707
Author: Antti Koivisto <antti at apple.com>
Date: 2024-10-21 (Mon, 21 Oct 2024)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-dynamic-default-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-dynamic-name-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-001-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-002-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-default-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-eval-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-name-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-transition-flip-expected.txt
M Source/WebCore/animation/BlendingKeyframes.cpp
M Source/WebCore/animation/BlendingKeyframes.h
M Source/WebCore/animation/KeyframeEffect.cpp
M Source/WebCore/css/CSSProperty.cpp
M Source/WebCore/css/CSSProperty.h
M Source/WebCore/style/AnchorPositionEvaluator.cpp
Log Message:
-----------
[css-anchor-position-1] Support animations
https://bugs.webkit.org/show_bug.cgi?id=281852
rdar://138312664
Reviewed by Antoine Quint.
Enable animations and transition with anchor().
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-dynamic-default-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-dynamic-name-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-animation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-002-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-default-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-eval-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-name-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-transition-flip-expected.txt:
* Source/WebCore/animation/BlendingKeyframes.cpp:
(WebCore::BlendingKeyframes::clear):
(WebCore::BlendingKeyframes::updatePropertiesMetadata):
Check if a keyframe value uses anchor().
* Source/WebCore/animation/BlendingKeyframes.h:
(WebCore::BlendingKeyframes::usesAnchorFunctions const):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::recomputeKeyframesIfNecessary):
Recommpute the keyframes if there are anchor functions (similar to using 'inherit') as their values may change.
* Source/WebCore/css/CSSProperty.cpp:
(WebCore::CSSProperty::isInsetProperty):
Move here for general use.
* Source/WebCore/css/CSSProperty.h:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::evaluate):
(WebCore::Style::isInsetProperty): Deleted.
Canonical link: https://commits.webkit.org/285508@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list