summaryrefslogtreecommitdiffstats
path: root/dom/animation/KeyframeEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/animation/KeyframeEffect.cpp')
-rw-r--r--dom/animation/KeyframeEffect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/animation/KeyframeEffect.cpp b/dom/animation/KeyframeEffect.cpp
index 90230a5b4..090c7019d 100644
--- a/dom/animation/KeyframeEffect.cpp
+++ b/dom/animation/KeyframeEffect.cpp
@@ -10,6 +10,7 @@
#include "mozilla/dom/AnimationEffectTiming.h"
#include "mozilla/dom/KeyframeEffectBinding.h"
#include "mozilla/KeyframeUtils.h"
+#include "mozilla/Preferences.h"
#include "nsContentUtils.h"
#include "nsDOMMutationObserver.h" // For nsAutoAnimationMutationBatch
#include "nsIScriptError.h"
@@ -135,9 +136,9 @@ void
KeyframeEffect::SetIterationComposite(
const IterationCompositeOperation& aIterationComposite)
{
- // Ignore iterationComposite if the Web Animations API is not enabled,
+ // Ignore iterationComposite if the API is not enabled,
// then the default value 'Replace' will be used.
- if (!AnimationUtils::IsCoreAPIEnabledForCaller()) {
+ if (!Preferences::GetBool("dom.animations-api.compositing.enabled")) {
return;
}