Bug 1656419 - Check whether the given animation and the animation stored in mPartialPrerenderedAnimations are in the same EffectSet instead of just comparing the animation instances. r=boris

Differential Revision: https://phabricator.services.mozilla.com/D85535
This commit is contained in:
Hiroyuki Ikezoe
2020-07-31 21:06:42 +00:00
parent 00530bed53
commit 2f624f98b8
6 changed files with 52 additions and 3 deletions

View File

@@ -904,8 +904,12 @@ void KeyframeEffect::UpdateTarget(Element* aElement,
}
if (mTarget) {
UnregisterTarget();
// Call ResetIsRunningOnCompositor() prior to UnregisterTarget() since
// ResetIsRunningOnCompositor() might try to get the EffectSet associated
// with this keyframe effect to remove partial pre-render animation from
// the layer manager.
ResetIsRunningOnCompositor();
UnregisterTarget();
RequestRestyle(EffectCompositor::RestyleType::Layer);