Index: core/animation/ElementAnimation.idl |
diff --git a/core/animation/ElementAnimation.idl b/core/animation/ElementAnimation.idl |
index ccfbca7ee254095df084a9a1cca82d3dfe31201d..7129e4df550d52514719c6c29198dbf00fa6a0a1 100644 |
--- a/core/animation/ElementAnimation.idl |
+++ b/core/animation/ElementAnimation.idl |
@@ -28,13 +28,17 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-// http://www.w3.org/TR/web-animations/#idl-def-Element |
-// FIXME: move to Animatable |
-// http://dev.w3.org/fxtf/web-animations/#idl-def-Animatable |
+// http://www.w3.org/TR/web-animations/#the-animatable-interface |
+// http://www.w3.org/TR/web-animations/#extensions-to-the-element-interface |
+ |
+// TODO(dstockwell): This should be an Animatable interface, where Element |
+// implements Animatable. The interface also has several changes: |
+// https://w3c.github.io/web-animations/#the-animatable-interface |
partial interface Element { |
- // FIXME: needs support for union types http://crbug.com/240176 |
- // AnimationPlayer animate((AnimationEffect or sequence<Dictionary>)? effect, optional (double or Dictionary) timing); |
- [Custom, RaisesException] AnimationPlayer animate(object effect, optional object timing); |
- [RuntimeEnabled=WebAnimationsAPI] sequence<AnimationPlayer> getAnimationPlayers(); |
+ // FIXME: Union types with dictionary type members doesn't work (yet). |
+ // Animation animate((EffectModel or sequence<Dictionary>)? effect, optional (double or KeyframeEffectOptions) timing); |
+ [Measure, RaisesException] Animation animate((EffectModel or sequence<Dictionary>)? effect, optional double timing); |
+ [Measure, RaisesException] Animation animate((EffectModel or sequence<Dictionary>)? effect, KeyframeEffectOptions timing); |
+ [RuntimeEnabled=WebAnimationsAPI] sequence<Animation> getAnimations(); |
}; |