From: L. David Baron Bug 1086937 patch 2 - Use eRestyle_ChangeAnimationPhaseDescendants to get the right style data in RestyleManager::RebuildAllStyleData. Until we get rid of animation phases in bug 960465, we need to ensure we're producing style data for the correct animation phase. This makes this optimization slightly less beneficial until then. diff --git a/layout/base/RestyleManager.cpp b/layout/base/RestyleManager.cpp --- a/layout/base/RestyleManager.cpp +++ b/layout/base/RestyleManager.cpp @@ -1451,16 +1451,17 @@ RestyleManager::RebuildAllStyleData(nsCh #endif // Until we get rid of these phases in bug 960465, we need to skip // animation restyles during the non-animation phase, and post // animation restyles so that we restyle those elements again in the // animation phase. mSkipAnimationRules = true; mPostAnimationRestyles = true; + aRestyleHint |= eRestyle_ChangeAnimationPhaseDescendants; DoRebuildAllStyleData(mPendingRestyles, aExtraHint, aRestyleHint); mPostAnimationRestyles = false; mSkipAnimationRules = false; #ifdef DEBUG mIsProcessingRestyles = false; #endif