mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1267937 - Part 1: Clear mProgressOnLastCompose once we are not in effect. r=birtles
--HG-- extra : amend_source : 2b1b5d22fdb559c940629fe4536369d95ca29306
This commit is contained in:
parent
6efdd0a095
commit
3e6aae0a2d
@ -185,14 +185,14 @@ KeyframeEffectReadOnly::NotifyAnimationTimingUpdated()
|
||||
EffectCompositor::RestyleType::Throttled :
|
||||
EffectCompositor::RestyleType::Standard;
|
||||
RequestRestyle(restyleType);
|
||||
}
|
||||
|
||||
// If we're not relevant, we will have been removed from the EffectSet.
|
||||
// As a result, when the restyle we requested above is fulfilled, our
|
||||
// ComposeStyle will not get called and mProgressOnLastCompose will not
|
||||
// be updated. Instead, we need to manually clear it.
|
||||
if (!isRelevant) {
|
||||
mProgressOnLastCompose.SetNull();
|
||||
}
|
||||
// If we're no longer "in effect", our ComposeStyle method will never be
|
||||
// called and we will never have a chance to update mProgressOnLastCompose.
|
||||
// We clear mProgressOnLastCompose here to ensure that if we later become
|
||||
// "in effect" we will request a restyle (above).
|
||||
if (!inEffect) {
|
||||
mProgressOnLastCompose.SetNull();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user