Bug 1456394 - Moving timing updates to KeyframeEffectReadOnly; r=hiro

This might seem a bit odd but later in this patch series we will rename
KeyframeEffectReadOnly to KeyframeEffect.

MozReview-Commit-ID: H9b8brtA36W
This commit is contained in:
Brian Birtles
2018-05-07 11:02:12 +09:00
parent c7ad93550d
commit 32f5b34a27
6 changed files with 25 additions and 26 deletions

View File

@@ -66,24 +66,5 @@ KeyframeEffect::Constructor(
aOptions, aRv);
}
void
KeyframeEffect::NotifySpecifiedTimingUpdated()
{
// Use the same document for a pseudo element and its parent element.
// Use nullptr if we don't have mTarget, so disable the mutation batch.
nsAutoAnimationMutationBatch mb(mTarget ? mTarget->mElement->OwnerDoc()
: nullptr);
if (mAnimation) {
mAnimation->NotifyEffectTimingUpdated();
if (mAnimation->IsRelevant()) {
nsNodeUtils::AnimationChanged(mAnimation);
}
RequestRestyle(EffectCompositor::RestyleType::Layer);
}
}
} // namespace dom
} // namespace mozilla