Bug 1045993 part 3 - Add AnimationEffect.name; r=dbaron, r=bz

This commit is contained in:
Brian Birtles 2014-08-22 13:42:48 +01:00
parent 5dd17adb88
commit 07f814acdf
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,11 @@ public:
Animation* GetParentObject() const { return mAnimation; }
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
// AnimationEffect interface
void GetName(nsString& aRetVal) const {
aRetVal = mAnimation->Name();
}
private:
~AnimationEffect() { }

View File

@ -12,4 +12,5 @@
[Pref="dom.animations-api.core.enabled"]
interface AnimationEffect {
readonly attribute DOMString name;
};