Changeset 287826 in webkit
- Timestamp:
- Jan 9, 2022 11:51:57 AM (6 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/animation/filter-interpolation-001-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/KeyframeEffect.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r287823 r287826 1 2022-01-09 Antoine Quint <graouts@webkit.org> 2 3 Interpolation for the "filter" property fails with a single keyframe 4 https://bugs.webkit.org/show_bug.cgi?id=235019 5 6 Reviewed by Dean Jackson. 7 8 Mark WPT progressions. 9 10 * web-platform-tests/css/filter-effects/animation/filter-interpolation-001-expected.txt: 11 1 12 2022-01-09 Ziran Sun <zsun@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/animation/filter-interpolation-001-expected.txt
r287813 r287826 66 66 PASS CSS Animations: property <filter> from neutral to [hue-rotate(20deg)] at (1) should be [hue-rotate(20deg)] 67 67 PASS CSS Animations: property <filter> from neutral to [hue-rotate(20deg)] at (1.5) should be [hue-rotate(25deg)] 68 FAIL Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (-0.5) should be [hue-rotate(5deg)] assert_equals: expected "hue - rotate ( 5deg ) " but got "hue - rotate ( 20deg ) " 69 FAIL Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0) should be [hue-rotate(10deg)] assert_equals: expected "hue - rotate ( 10deg ) " but got "hue - rotate ( 20deg ) " 70 FAIL Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0.3) should be [hue-rotate(13deg)] assert_equals: expected "hue - rotate ( 13deg ) " but got "hue - rotate ( 20deg ) " 71 FAIL Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0.6) should be [hue-rotate(16deg)] assert_equals: expected "hue - rotate ( 16deg ) " but got "hue - rotate ( 20deg ) " 68 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (-0.5) should be [hue-rotate(5deg)] 69 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0) should be [hue-rotate(10deg)] 70 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0.3) should be [hue-rotate(13deg)] 71 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (0.6) should be [hue-rotate(16deg)] 72 72 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (1) should be [hue-rotate(20deg)] 73 FAIL Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (1.5) should be [hue-rotate(25deg)] assert_equals: expected "hue - rotate ( 25deg ) " but got "hue - rotate ( 20deg ) " 73 PASS Web Animations: property <filter> from neutral to [hue-rotate(20deg)] at (1.5) should be [hue-rotate(25deg)] 74 74 PASS CSS Transitions: property <filter> from [initial] to [hue-rotate(20deg)] at (-0.5) should be [hue-rotate(-10deg)] 75 75 PASS CSS Transitions: property <filter> from [initial] to [hue-rotate(20deg)] at (0) should be [hue-rotate(0deg)] -
trunk/Source/WebCore/ChangeLog
r287825 r287826 1 2022-01-09 Antoine Quint <graouts@webkit.org> 2 3 Interpolation for the "filter" property fails with a single keyframe 4 https://bugs.webkit.org/show_bug.cgi?id=235019 5 6 Reviewed by Dean Jackson. 7 8 In the case of an animation with a single keyframe, the 0% or 100% value (or both) may 9 be implicit and the blending keyframes can have fewer than to entries. This would make 10 KeyframeEffect::checkForMatchingFilterFunctionLists() always store "false" values for 11 whether "filter" values in keyframes match and prevent any blending from happening. 12 13 In the case where we have fewer than 2 values, as long as the property is animated, 14 we return true. 15 16 * animation/KeyframeEffect.cpp: 17 (WebCore::KeyframeEffect::checkForMatchingFilterFunctionLists const): 18 1 19 2022-01-09 Sam Weinig <weinig@apple.com> 2 20 -
trunk/Source/WebCore/animation/KeyframeEffect.cpp
r287820 r287826 1049 1049 bool KeyframeEffect::checkForMatchingFilterFunctionLists(CSSPropertyID propertyID, const std::function<const FilterOperations& (const RenderStyle&)>& filtersGetter) const 1050 1050 { 1051 if ( m_blendingKeyframes.size() < 2 ||!m_blendingKeyframes.containsProperty(propertyID))1051 if (!m_blendingKeyframes.containsProperty(propertyID)) 1052 1052 return false; 1053 1054 if (m_blendingKeyframes.size() < 2) 1055 return true; 1053 1056 1054 1057 // Empty filters match anything, so find the first non-empty entry as the reference.
Note: See TracChangeset
for help on using the changeset viewer.