зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1459533 - Use GetPrimaryFrame() to get correct nsIFrame for the animation on pseudo elements. r=mattwoodrow
In pseudo element cases mTarget->mElement is the parent element of the pseudo, thus we inefficiently use the parent frame and walked through parent continuations. MozReview-Commit-ID: DsNRXaM346D --HG-- extra : rebase_source : e62eeff02897ca08e800c1d807f81a0d4cf38dd1
This commit is contained in:
Родитель
8e0dec0d90
Коммит
481c14a322
|
@ -724,7 +724,7 @@ KeyframeEffectReadOnly::UpdateTargetRegistration()
|
|||
effectSet->AddEffect(*this);
|
||||
mInEffectSet = true;
|
||||
UpdateEffectSet(effectSet);
|
||||
nsIFrame* f = mTarget->mElement->GetPrimaryFrame();
|
||||
nsIFrame* f = GetPrimaryFrame();
|
||||
while (f) {
|
||||
f->MarkNeedsDisplayItemRebuild();
|
||||
f = f->GetNextContinuation();
|
||||
|
@ -753,7 +753,7 @@ KeyframeEffectReadOnly::UnregisterTarget()
|
|||
EffectSet::DestroyEffectSet(mTarget->mElement, mTarget->mPseudoType);
|
||||
}
|
||||
}
|
||||
nsIFrame* f = mTarget->mElement->GetPrimaryFrame();
|
||||
nsIFrame* f = GetPrimaryFrame();
|
||||
while (f) {
|
||||
f->MarkNeedsDisplayItemRebuild();
|
||||
f = f->GetNextContinuation();
|
||||
|
|
Загрузка…
Ссылка в новой задаче