Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Web Animations] Ensure setting the hold time invalidates the timing …
…model https://bugs.webkit.org/show_bug.cgi?id=183136 Reviewed by Dean Jackson. LayoutTests/imported/w3c: Update test expectations with progressions. * web-platform-tests/css/css-multicol/multicol-gap-animation-001-expected.txt: * web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation-expected.txt: * web-platform-tests/web-animations/interfaces/Animation/cancel-expected.txt: * web-platform-tests/web-animations/interfaces/Animation/finish-expected.txt: * web-platform-tests/web-animations/interfaces/KeyframeEffect/iterationComposite-expected.txt: Source/WebCore: We used to always set the m_holdTime member variable directly, but the computation of the currentTime depends on the value of m_holdTime, so setting the hold time should invalidate the timing model as well as setting the m_holdTime member variable. In this patch we add a new setHoldTime() private method that sets the member variable and invalidates the timing model. * animation/WebAnimation.cpp: (WebCore::WebAnimation::setTimeline): (WebCore::WebAnimation::setHoldTime): (WebCore::WebAnimation::silentlySetCurrentTime): (WebCore::WebAnimation::setCurrentTime): (WebCore::WebAnimation::cancel): (WebCore::WebAnimation::finish): (WebCore::WebAnimation::updateFinishedState): (WebCore::WebAnimation::play): (WebCore::WebAnimation::runPendingPlayTask): (WebCore::WebAnimation::pause): (WebCore::WebAnimation::runPendingPauseTask): * animation/WebAnimation.h: Canonical link: https://commits.webkit.org/198850@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
90 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../imported/w3c/web-platform-tests/css/css-multicol/multicol-gap-animation-001-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL column-gap property is animatable assert_equals: expected "150px" but got "100px" | ||
PASS column-gap property is animatable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/cancel-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
FAIL Animated style is cleared after calling Animation.cancel() assert_not_equals: transform style is animated before cancelling got disallowed value "none" | ||
FAIL After cancelling an animation, it can still be seeked assert_equals: margin-left style is updated when cancelled animation is seeked expected "150px" but got "0px" | ||
PASS After cancelling an animation, it can still be seeked | ||
PASS After cancelling an animation, it can still be re-used | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b-platform-tests/web-animations/interfaces/KeyframeEffect/iterationComposite-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL iterationComposite can be updated while an animation is in progress assert_equals: Animated style at 50s of the third iteration expected "25px" but got "0px" | ||
FAIL iterationComposite can be updated while an animation is in progress assert_equals: Animated style at 50s of the third iteration expected "25px" but got "5px" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters