Index: core/animation/KeyframeEffect.idl |
diff --git a/core/animation/AnimationNode.idl b/core/animation/KeyframeEffect.idl |
similarity index 76% |
rename from core/animation/AnimationNode.idl |
rename to core/animation/KeyframeEffect.idl |
index c04ede67dfc71172ad802be146c41225340829cd..0235507d149325283a9c79cc9ffcae328af77641 100644 |
--- a/core/animation/AnimationNode.idl |
+++ b/core/animation/KeyframeEffect.idl |
@@ -28,20 +28,14 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://w3c.github.io/web-animations/#the-keyframeeffect-interfaces |
+ |
[ |
+ // TODO(dstockwell): the third argument should be "optional (unrestricted double or KeyframeEffectOptions) timing". |
+ Constructor(Element? target, sequence<Dictionary> keyframes, optional unrestricted double timing), |
+ Constructor(Element? target, sequence<Dictionary> keyframes, KeyframeEffectOptions timing), |
+ RaisesException=Constructor, |
RuntimeEnabled=WebAnimationsAPI, |
- WillBeGarbageCollected, |
-] interface AnimationNode { |
- // Playback state |
- readonly attribute double? localTime; |
- readonly attribute unsigned long? currentIteration; |
- |
- // Calculated timing |
- readonly attribute double startTime; |
- readonly attribute double duration; |
- readonly attribute double activeDuration; |
- readonly attribute double endTime; |
- |
- readonly attribute Timing timing; |
- readonly attribute AnimationPlayer? player; |
+ TypeChecking=Interface, |
+] interface KeyframeEffect : AnimationEffectReadOnly { |
}; |