Bug 1178662 part 5 - Modify the attribute of Animation's WebIDL in order to conform web animation spec. r?smaug
The specification of Animation interface is as follow.
https://w3c.github.io/web-animations/#the-animation-interface
MozReview-Commit-ID: O4NkFZuG39
--- a/dom/webidl/Animation.webidl
+++ b/dom/webidl/Animation.webidl
@@ -16,17 +16,17 @@ enum AnimationPlayState { "idle", "pendi
Constructor (optional KeyframeEffectReadOnly? effect = null,
optional AnimationTimeline? timeline)]
interface Animation : EventTarget {
attribute DOMString id;
// Bug 1049975: Make 'effect' writeable
[Func="nsDocument::IsWebAnimationsEnabled", Pure]
readonly attribute AnimationEffectReadOnly? effect;
[Func="nsDocument::IsWebAnimationsEnabled"]
- readonly attribute AnimationTimeline? timeline;
+ attribute AnimationTimeline? timeline;
[BinaryName="startTimeAsDouble"]
attribute double? startTime;
[SetterThrows, BinaryName="currentTimeAsDouble"]
attribute double? currentTime;
attribute double playbackRate;
[BinaryName="playStateFromJS"]
readonly attribute AnimationPlayState playState;