diff --git a/dom/animation/KeyframeEffectReadOnly.cpp b/dom/animation/KeyframeEffectReadOnly.cpp index de446b43ac68..28f62fd3b5a7 100644 --- a/dom/animation/KeyframeEffectReadOnly.cpp +++ b/dom/animation/KeyframeEffectReadOnly.cpp @@ -217,7 +217,7 @@ KeyframeEffectReadOnly::DoSetKeyframes(nsTArray&& aKeyframes, } mKeyframes = Move(aKeyframes); - KeyframeUtils::ApplyDistributeSpacing(mKeyframes); + KeyframeUtils::DistributeKeyframes(mKeyframes); if (mAnimation && mAnimation->IsRelevant()) { nsNodeUtils::AnimationChanged(mAnimation); diff --git a/dom/animation/KeyframeUtils.cpp b/dom/animation/KeyframeUtils.cpp index 1a66f1d13f41..f17edf910d5e 100644 --- a/dom/animation/KeyframeUtils.cpp +++ b/dom/animation/KeyframeUtils.cpp @@ -465,7 +465,7 @@ KeyframeUtils::GetKeyframesFromObject(JSContext* aCx, } /* static */ void -KeyframeUtils::ApplyDistributeSpacing(nsTArray& aKeyframes) +KeyframeUtils::DistributeKeyframes(nsTArray& aKeyframes) { if (aKeyframes.IsEmpty()) { return; @@ -1471,7 +1471,7 @@ RequiresAdditiveAnimation(const nsTArray& aKeyframes, for (size_t i = 0, len = aKeyframes.Length(); i < len; i++) { const Keyframe& frame = aKeyframes[i]; - // We won't have called ApplyDistributeSpacing when this is called so + // We won't have called DistributeKeyframes when this is called so // we can't use frame.mComputedOffset. Instead we do a rough version // of that algorithm that substitutes null offsets with 0.0 for the first // frame, 1.0 for the last frame, and 0.5 for everything else. diff --git a/dom/animation/KeyframeUtils.h b/dom/animation/KeyframeUtils.h index ff4ecf3cbbc7..a2e6d115d531 100644 --- a/dom/animation/KeyframeUtils.h +++ b/dom/animation/KeyframeUtils.h @@ -99,7 +99,7 @@ public: * * @param aKeyframes The set of keyframes to adjust. */ - static void ApplyDistributeSpacing(nsTArray& aKeyframes); + static void DistributeKeyframes(nsTArray& aKeyframes); /** * Converts an array of Keyframe objects into an array of AnimationProperty