Bug 1293806 - Removed UpdateAnimationGeneration in nsAnimationManager::UpdateAnimations r?hiro draft
authorshundroid <ra24483@qb3.so-net.ne.jp>
Sat, 27 Aug 2016 13:28:54 +0900
changeset 406380 474fce8ea9435d5b997cc94e6b64458a94809994
parent 406358 dbf075cf15c3bf0f6075d71dceec93a947a656d4
child 529639 f53a27aa697013fb272dd533593b123391963fa9
push id27706
push userbmo:ra24483@qb3.so-net.ne.jp
push dateSat, 27 Aug 2016 04:29:17 +0000
reviewershiro
bugs1293806
milestone51.0a1
Bug 1293806 - Removed UpdateAnimationGeneration in nsAnimationManager::UpdateAnimations r?hiro MozReview-Commit-ID: CtSBqgzTlVV
layout/style/nsAnimationManager.cpp
--- a/layout/style/nsAnimationManager.cpp
+++ b/layout/style/nsAnimationManager.cpp
@@ -407,23 +407,17 @@ nsAnimationManager::UpdateAnimations(nsS
 
   if (newAnimations.IsEmpty()) {
     if (collection) {
       collection->Destroy();
     }
     return;
   }
 
-  if (collection) {
-    EffectSet* effectSet =
-      EffectSet::GetEffectSet(aElement, aStyleContext->GetPseudoType());
-    if (effectSet) {
-      effectSet->UpdateAnimationGeneration(mPresContext);
-    }
-  } else {
+  if (!collection) {
     bool createdCollection = false;
     collection =
       CSSAnimationCollection::GetOrCreateAnimationCollection(
         aElement, aStyleContext->GetPseudoType(), &createdCollection);
     if (!collection) {
       MOZ_ASSERT(!createdCollection, "outparam should agree with return value");
       NS_WARNING("allocating collection failed");
       return;