diff --git a/dom/animation/KeyframeEffectReadOnly.cpp b/dom/animation/KeyframeEffectReadOnly.cpp index 19f7c6bcdd0d..9de896935d9e 100644 --- a/dom/animation/KeyframeEffectReadOnly.cpp +++ b/dom/animation/KeyframeEffectReadOnly.cpp @@ -1360,13 +1360,7 @@ KeyframeEffectReadOnly::CanThrottleTransformChanges(nsIFrame& aFrame) const return true; } - nsPresContext* presContext = GetPresContext(); - // CanThrottleTransformChanges is only called as part of a refresh driver tick - // in which case we expect to has a pres context. - MOZ_ASSERT(presContext); - - TimeStamp now = - presContext->RefreshDriver()->MostRecentRefresh(); + TimeStamp now = aFrame.PresContext()->RefreshDriver()->MostRecentRefresh(); EffectSet* effectSet = EffectSet::GetEffectSet(mTarget->mElement, mTarget->mPseudoType);