Bug 874770 - Always enable OMTA throttling r=nrc

This commit is contained in:
David Zbarsky
2013-05-22 18:31:03 +08:00
parent f14debdcb9
commit 1e055da7ed
8 changed files with 11 additions and 23 deletions

View File

@@ -12026,7 +12026,7 @@ nsCSSFrameConstructor::ProcessPendingRestyles()
// running entirely on the compositor thread) is up-to-date, so that
// if any style changes we cause trigger transitions, we have the
// correct old style for starting the transition.
if (css::CommonAnimationManager::ThrottlingEnabled() &&
if (nsLayoutUtils::AreAsyncAnimationsEnabled() &&
mPendingRestyles.Count() > 0) {
++mAnimationGeneration;
presContext->TransitionManager()->UpdateAllThrottledStyles();