- From: Brian Birtles <bbirtles@mozilla.com>
- Date: Thu, 09 Apr 2015 15:47:45 +0900
- To: Сергей Грехов <sgrekhov@unipro.ru>, public-fx@w3.org
- CC: dom@unipro.ru
On 2015/03/06 15:54, "Сергей Грехов" wrote: > Hi All, > > AnimationTiming interface definition is the following > (https://w3c.github.io/web-animations/#the-animationtiming-interface): > > The AnimationTiming interface is a mutable subclass of > AnimationTimingReadonly returned for the timing attribute of a mutable > animation node such as Animation. > > But Animation interface doesn't contain any mutable timing properties. It > has only > > readonly attribute AnimationTimingReadonly timing; > > inherited from AnimationNodeReadonly. Mutable override should be added This was discussed in [1] as well. As Shane replied there, although you can't tell from the WebIDL, for a KeyframeEffect object (the equivalent to 'Animation' in the question above), the return value of the 'timing' attribute is an AnimationEffectTiming object which is mutable (and which inherits from AnimationEffectTimingReadOnly). This comes about because the constructor for a KeyframeEffect object initializes its timing property to a new AnimationEffectTiming object.[2] Best regards, Brian [1] https://github.com/w3c/web-animations/issues/81 [2] https://w3c.github.io/web-animations/#dom-keyframeeffect-keyframeeffecttarget-frames-options
Received on Thursday, 9 April 2015 06:48:07 UTC