зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1367975 - Call RequestRestyle(Layer) when specified timing is changed for CSS animations. r=birtles
Current Gecko does not need this (see bug 1367975 comment 10 for the reason), but this is the right thing to do for our animation styling machinery especially for updating animations on the compositor. MozReview-Commit-ID: H6mgTXMHecG --HG-- extra : rebase_source : ef2e5127a5c56008771a434cc5c342ebeca1b7be
This commit is contained in:
Родитель
b5e831e121
Коммит
16b042e1e5
|
@ -80,6 +80,9 @@ AnimationEffectReadOnly::SetSpecifiedTiming(const TimingParams& aTiming)
|
||||||
mTiming->SetTimingParams(aTiming);
|
mTiming->SetTimingParams(aTiming);
|
||||||
if (mAnimation) {
|
if (mAnimation) {
|
||||||
mAnimation->NotifyEffectTimingUpdated();
|
mAnimation->NotifyEffectTimingUpdated();
|
||||||
|
if (AsKeyframeEffect()) {
|
||||||
|
AsKeyframeEffect()->RequestRestyle(EffectCompositor::RestyleType::Layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// For keyframe effects, NotifyEffectTimingUpdated above will eventually cause
|
// For keyframe effects, NotifyEffectTimingUpdated above will eventually cause
|
||||||
// KeyframeEffectReadOnly::NotifyAnimationTimingUpdated to be called so it can
|
// KeyframeEffectReadOnly::NotifyAnimationTimingUpdated to be called so it can
|
||||||
|
|
Загрузка…
Ссылка в новой задаче