Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Web Animations] Add animations to the timeline
https://bugs.webkit.org/show_bug.cgi?id=178643 Patch by Antoine Quint <graouts@apple.com> on 2017-10-22 Reviewed by Dean Jackson. Source/WebCore: If a timeline is provided as a parameter to the Animation constructor, add it to the timeline, and remove it when the object is destroyed. We also start the basic mechanism to dump the contents of a timeline as text for testing purposes, currently only logging the number of animations in a timeline and just logging the class name for animation themselves. Test: webanimations/animation-creation-addition.html * animation/AnimationTimeline.cpp: (WebCore::AnimationTimeline::description): * animation/AnimationTimeline.h: * animation/AnimationTimeline.idl: * animation/WebAnimation.cpp: (WebCore::WebAnimation::create): (WebCore::WebAnimation::~WebAnimation): (WebCore::WebAnimation::description): * animation/WebAnimation.h: * testing/Internals.cpp: (WebCore::Internals::timelineDescription): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Add a new test that checks that animations created with a timeline are added to the provided timeline. * webanimations/animation-creation-addition-expected.txt: Added. * webanimations/animation-creation-addition.html: Added. Canonical link: https://commits.webkit.org/194823@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
f374c9e
commit 86c3cf928df8d6a2b94fc771418443b030a4b2b3
Showing
12 changed files
with
115 additions
and
1 deletion.
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
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
@@ -0,0 +1,13 @@ | ||
Constructing an Animation with a timeline should add the animation to the timeline. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
DocumentTimeline with 2 animations: | ||
1. Animation | ||
2. Animation | ||
|
||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
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
@@ -0,0 +1,12 @@ | ||
<script src="../resources/js-test-pre.js"></script> | ||
<script> | ||
|
||
description("Constructing an Animation with a timeline should add the animation to the timeline."); | ||
|
||
new Animation(document.timeline); | ||
new Animation(); | ||
new Animation(document.timeline); | ||
debug(internals.timelineDescription(document.timeline)); | ||
|
||
</script> | ||
<script src="../resources/js-test-post.js"></script> |
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
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
@@ -25,6 +25,7 @@ | ||
|
||
[ | ||
EnabledAtRuntime=WebAnimations, | ||
ExportMacro=WEBCORE_EXPORT, | ||
CustomToJSObject | ||
] interface AnimationTimeline { | ||
}; |
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
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