diff --git a/dom/animation/KeyframeEffectReadOnly.cpp b/dom/animation/KeyframeEffectReadOnly.cpp index e4e79a8fcbd8..4383b66a3788 100644 --- a/dom/animation/KeyframeEffectReadOnly.cpp +++ b/dom/animation/KeyframeEffectReadOnly.cpp @@ -467,7 +467,7 @@ KeyframeEffectReadOnly::EnsureBaseStyles( for (const AnimationProperty& property : aProperties) { for (const AnimationPropertySegment& segment : property.mSegments) { - if (segment.HasReplacableValues()) { + if (segment.HasReplaceableValues()) { continue; } @@ -1660,7 +1660,7 @@ KeyframeEffectReadOnly::CalculateCumulativeChangeHint( // we can't throttle animations which will not cause any layout changes // on invisible elements because we can't calculate the change hint for // such properties until we compose it. - if (!segment.HasReplacableValues()) { + if (!segment.HasReplaceableValues()) { mCumulativeChangeHint = ~nsChangeHint_Hints_CanIgnoreIfNotVisible; return; } diff --git a/dom/animation/KeyframeEffectReadOnly.h b/dom/animation/KeyframeEffectReadOnly.h index 7ef1f9aa680a..4fd3f02982f6 100644 --- a/dom/animation/KeyframeEffectReadOnly.h +++ b/dom/animation/KeyframeEffectReadOnly.h @@ -65,18 +65,18 @@ struct AnimationPropertySegment dom::CompositeOperation mFromComposite = dom::CompositeOperation::Replace; dom::CompositeOperation mToComposite = dom::CompositeOperation::Replace; - bool HasReplacableValues() const + bool HasReplaceableValues() const { - return HasReplacableFromValue() && HasReplacableToValue(); + return HasReplaceableFromValue() && HasReplaceableToValue(); } - bool HasReplacableFromValue() const + bool HasReplaceableFromValue() const { return !mFromValue.IsNull() && mFromComposite == dom::CompositeOperation::Replace; } - bool HasReplacableToValue() const + bool HasReplaceableToValue() const { return !mToValue.IsNull() && mToComposite == dom::CompositeOperation::Replace; diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index f5eed0d1335a..b43b3ef12197 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -603,10 +603,10 @@ GetMinAndMaxScaleForAnimationProperty(const nsIFrame* aFrame, for (const AnimationPropertySegment& segment : prop.mSegments) { // In case of add or accumulate composite, StyleAnimationValue does // not have a valid value. - if (segment.HasReplacableFromValue()) { + if (segment.HasReplaceableFromValue()) { UpdateMinMaxScale(aFrame, segment.mFromValue, aMinScale, aMaxScale); } - if (segment.HasReplacableToValue()) { + if (segment.HasReplaceableToValue()) { UpdateMinMaxScale(aFrame, segment.mToValue, aMinScale, aMaxScale); } }