Changeset 281683 in webkit
- Timestamp:
- Aug 26, 2021 8:52:54 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/animations/background-position-expected.html (added)
-
LayoutTests/animations/background-position.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r281682 r281683 1 2021-08-26 Simon Fraser <simon.fraser@apple.com> 2 3 CSS keyframed animations don't respect edges in 4 value background-position 4 https://bugs.webkit.org/show_bug.cgi?id=228995 5 6 Reviewed by Darin Adler. 7 8 For some background-position animations we'd fail to set backgroundOriginX/Y in the 9 destination style's FillLayer, because this is not set in the destination style initially. 10 11 So have FillLayerPositionPropertyWrapper::blend() always set it. 12 13 * animations/background-position-expected.html: Added. 14 * animations/background-position.html: Added. 15 1 16 2021-08-26 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/Source/WebCore/ChangeLog
r281682 r281683 1 2021-08-26 Simon Fraser <simon.fraser@apple.com> 2 3 CSS keyframed animations don't respect edges in 4 value background-position 4 https://bugs.webkit.org/show_bug.cgi?id=228995 5 6 Reviewed by Darin Adler. 7 8 For some background-position animations we'd fail to set backgroundOriginX/Y in the 9 destination style's FillLayer, because this is not set in the destination style initially. 10 11 So have FillLayerPositionPropertyWrapper::blend() always set it. 12 13 Test: animations/background-position.html 14 15 * animation/CSSPropertyAnimation.cpp: 16 1 17 2021-08-26 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r281512 r281683 1644 1644 Edge toEdge = (to->*m_originGetter)(); 1645 1645 1646 Edge destinationEdge = toEdge; 1646 1647 if (fromEdge != toEdge) { 1647 1648 // Convert the right/bottom into a calc expression, … … 1650 1651 else if (toEdge == m_farEdge) { 1651 1652 toLength = convertTo100PercentMinusLength(toLength); 1652 (destination->*m_originSetter)(fromEdge); // Now we have a calc(100% - l), it's relative to the left/top edge.1653 destinationEdge = fromEdge; // Now we have a calc(100% - l), it's relative to the left/top edge. 1653 1654 } 1654 1655 } 1655 1656 1657 (destination->*m_originSetter)(destinationEdge); 1656 1658 (destination->*m_lengthSetter)(blendFunc(fromLength, toLength, context)); 1657 1659 }
Note: See TracChangeset
for help on using the changeset viewer.