diff --git a/dom/animation/AnimationEffectTimingReadOnly.cpp b/dom/animation/AnimationEffectTimingReadOnly.cpp index 52c7179830af..93df07f89b2e 100644 --- a/dom/animation/AnimationEffectTimingReadOnly.cpp +++ b/dom/animation/AnimationEffectTimingReadOnly.cpp @@ -40,7 +40,7 @@ AnimationEffectTimingReadOnly::GetDuration( void AnimationEffectTimingReadOnly::GetEasing(nsString& aRetVal) const { - if (mTiming.mFunction.isSome()) { + if (mTiming.mFunction) { mTiming.mFunction->AppendToString(aRetVal); } else { aRetVal.AssignLiteral("linear"); diff --git a/dom/animation/ComputedTimingFunction.h b/dom/animation/ComputedTimingFunction.h index 5c7e578f27a6..4494be5a6df3 100644 --- a/dom/animation/ComputedTimingFunction.h +++ b/dom/animation/ComputedTimingFunction.h @@ -44,7 +44,7 @@ public: static double GetPortion(const Maybe& aFunction, double aPortion) { - return aFunction.isSome() ? aFunction->GetValue(aPortion) : aPortion; + return aFunction ? aFunction->GetValue(aPortion) : aPortion; } static int32_t Compare(const Maybe& aLhs, const Maybe& aRhs);