Bug 1104435 part 2 - Make AnimationPlayer derive from nsISupports; r=smaug
commit93e00287628d39511637e25803c86e9d21df16f9
authorBrian Birtles <birtles@gmail.com>
Wed, 17 Dec 2014 23:42:40 +0000 (18 08:42 +0900)
committerBrian Birtles <birtles@gmail.com>
Wed, 17 Dec 2014 23:42:40 +0000 (18 08:42 +0900)
tree6866067a3392c3ba964fdadf8e053aef082e8d30
parent4d0e7f2cd7f6bf69982a00acbc9eaad028ccf62e
Bug 1104435 part 2 - Make AnimationPlayer derive from nsISupports; r=smaug

Web Animations defines the AnimationPlayer.ready Promise as type
Promise<AnimationPlayer>. This promise resolves to the AnimationPlayer object on
which it is defined. However, in order to be able to pass AnimationPlayer as
a resolution value it needs to implement nsISupports.

This patch makes AnimationPlayer derive from nsISupports.
dom/animation/AnimationPlayer.cpp
dom/animation/AnimationPlayer.h