Bug 1216030 - Part 9: We don't need to call CanPerformOnCompositorThread in RequestRestyle.

That's because KeyFrameEffectReadOnly::mIsPropertyRunningOnCompositor indicates the
correct state that the animation property is now running on compositor or not.
So once the flag is set to true, we do not need to check animation properties can run on
compositor after Animation::CanThrottle again.
This commit is contained in:
Hiroyuki Ikezoe 2015-10-28 02:55:00 +01:00
Родитель 6f7b96040d
Коммит 74a78cc5ad
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -783,8 +783,7 @@ AnimationCollection::RequestRestyle(RestyleType aRestyleType)
// throttling (e.g. async animations are not enabled).
if (aRestyleType == RestyleType::Throttled) {
TimeStamp now = presContext->RefreshDriver()->MostRecentRefresh();
if (!CanPerformOnCompositorThread(CanAnimateFlags(0)) ||
!CanThrottleAnimation(now)) {
if (!CanThrottleAnimation(now)) {
aRestyleType = RestyleType::Standard;
}
}