Bug 1476158 - Guard CSSAnimation and CSSTransition interfaces behind getAnimations() pref; r?bz
The CSSAnimation and CSSTransition interfaces are only needed to represent CSS
animations and CSS transitions returned by the
{Document,Element}.getAnimations() API.
Bug 1471814 introduced the dom.animations-api.getAnimations.enabled pref but
neglected to guard the CSSAnimation and CSSTransition interfaces behind this
pref, leaving them guarded by the dom.animations-api.core.enabled pref instead.
This patch updates the pref used to guard these interfaces so that when we turn
on the dom.animations-api.core.enabled pref by default we don't also end up
shipping these interfaces.
MozReview-Commit-ID: GjfvOltxlJy
--- a/dom/webidl/CSSAnimation.webidl
+++ b/dom/webidl/CSSAnimation.webidl
@@ -5,13 +5,13 @@
*
* The origin of this IDL file is
* http://dev.w3.org/csswg/css-animations-2/#the-CSSAnimation-interface
*
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
* liability, trademark and document use rules apply.
*/
-[Func="nsDocument::IsWebAnimationsEnabled",
+[Func="nsDocument::IsWebAnimationsGetAnimationsEnabled",
HeaderFile="nsAnimationManager.h"]
interface CSSAnimation : Animation {
[Constant] readonly attribute DOMString animationName;
};
--- a/dom/webidl/CSSTransition.webidl
+++ b/dom/webidl/CSSTransition.webidl
@@ -5,13 +5,13 @@
*
* The origin of this IDL file is
* http://dev.w3.org/csswg/css-transitions-2/#the-CSSTransition-interface
*
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
* liability, trademark and document use rules apply.
*/
-[Func="nsDocument::IsWebAnimationsEnabled",
+[Func="nsDocument::IsWebAnimationsGetAnimationsEnabled",
HeaderFile="nsTransitionManager.h"]
interface CSSTransition : Animation {
[Constant] readonly attribute DOMString transitionProperty;
};