Changeset 289226 in webkit
- Timestamp:
- Feb 7, 2022 9:46:17 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animation-001-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/KeyframeEffect.cpp (modified) (1 diff)
-
Source/WebCore/animation/KeyframeEffect.h (modified) (1 diff)
-
Source/WebCore/animation/KeyframeEffectStack.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r289222 r289226 1 2022-02-07 Antoine Quint <graouts@webkit.org> 2 3 [css-logical] [web-animations] changing direction or writing-mode should clear computed keyframes 4 https://bugs.webkit.org/show_bug.cgi?id=236241 5 6 Reviewed by Dean Jackson. 7 8 Mark WPT progressions. 9 10 * web-platform-tests/css/css-logical/animation-001-expected.txt: 11 1 12 2022-02-07 Antti Koivisto <antti@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/animation-001-expected.txt
r289216 r289226 16 16 FAIL Physical shorthands and logical shorthands can be mixed assert_equals: expected "250px" but got "150px" 17 17 PASS Physical properties win over logical properties even when some keyframes only have logical properties 18 FAIL Animations update when the writing-mode is changed assert_equals: expected "50px" but got "0px" 19 FAIL Filling animations update when the writing-mode is changed assert_equals: expected "100px" but got "0px" 20 FAIL Animations with implicit from values update when the writing-mode is changed assert_equals: expected "200px" but got "100px" 21 FAIL Animations with overlapping physical and logical properties update when the writing-mode is changed assert_equals: expected "50px" but got "0px" 22 FAIL Animations update when the writing-mode is changed through a CSS variable assert_equals: expected "50px" but got "0px" 23 FAIL Animations update when the direction is changed assert_equals: expected "0px" but got "50px" 18 PASS Animations update when the writing-mode is changed 19 PASS Filling animations update when the writing-mode is changed 20 PASS Animations with implicit from values update when the writing-mode is changed 21 PASS Animations with overlapping physical and logical properties update when the writing-mode is changed 22 PASS Animations update when the writing-mode is changed through a CSS variable 23 PASS Animations update when the direction is changed 24 24 FAIL Logical shorthand with variable references animates correctly assert_equals: expected "250px" but got "auto" 25 25 PASS writing-mode is not animatable -
trunk/Source/WebCore/ChangeLog
r289225 r289226 1 2022-02-07 Antoine Quint <graouts@webkit.org> 2 3 [css-logical] [web-animations] changing direction or writing-mode should clear computed keyframes 4 https://bugs.webkit.org/show_bug.cgi?id=236241 5 6 Reviewed by Dean Jackson. 7 8 Any time the "direction" or "writing-mode" property changes, we must clear the computed keyframes 9 as we should re-resolve any logical properties used on the source keyframes. 10 11 * animation/KeyframeEffect.cpp: 12 (WebCore::KeyframeEffect::propertyAffectingLogicalPropertiesDidChange): 13 * animation/KeyframeEffect.h: 14 * animation/KeyframeEffectStack.cpp: 15 (WebCore::KeyframeEffectStack::applyKeyframeEffects): 16 1 17 2022-02-07 Antoine Quint <graouts@webkit.org> 2 18 -
trunk/Source/WebCore/animation/KeyframeEffect.cpp
r289216 r289226 1702 1702 } 1703 1703 1704 void KeyframeEffect::propertyAffectingLogicalPropertiesDidChange() 1705 { 1706 if (m_blendingKeyframesSource == BlendingKeyframesSource::WebAnimation) 1707 clearBlendingKeyframes(); 1708 } 1709 1704 1710 void KeyframeEffect::animationWasCanceled() 1705 1711 { -
trunk/Source/WebCore/animation/KeyframeEffect.h
r289211 r289226 127 127 void animationTimingDidChange(); 128 128 void transformRelatedPropertyDidChange(); 129 void propertyAffectingLogicalPropertiesDidChange(); 129 130 OptionSet<AcceleratedActionApplicationResult> applyPendingAcceleratedActions(); 130 131 -
trunk/Source/WebCore/animation/KeyframeEffectStack.cpp
r287769 r289226 134 134 }(); 135 135 136 auto propertyAffectingLogicalPropertiesChanged = previousLastStyleChangeEventStyle.direction() != targetStyle.direction() 137 || previousLastStyleChangeEventStyle.writingMode() != targetStyle.writingMode(); 138 136 139 for (const auto& effect : sortedEffects()) { 137 140 ASSERT(effect->animation()); 141 142 if (propertyAffectingLogicalPropertiesChanged) 143 effect->propertyAffectingLogicalPropertiesDidChange(); 144 138 145 effect->animation()->resolve(targetStyle, resolutionContext); 139 146
Note: See TracChangeset
for help on using the changeset viewer.