Bug 1341987 - Part 4: Use nsIFrame's nsPresContext instead of getting from element. r=birtles

MozReview-Commit-ID: 3pWt7d2MKsZ

--HG--
extra : rebase_source : cb34e1aa141d3a6aaa13f3482c8abf1cf83c14f9
This commit is contained in:
Hiroyuki Ikezoe 2017-02-27 11:34:48 +09:00
Родитель feb893ec07
Коммит f268b13da5
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -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);