Bug 1133439 patch 2 - Distinguish animation-only SMIL restyles based on eRestyle_StyleAttribute_Animations in RestyleManager::PostRestyleEvent. r=birtles

This commit is contained in:
L. David Baron 2015-02-19 21:22:05 +13:00
Родитель 3f721f200d
Коммит b00c25a4fd
1 изменённых файлов: 4 добавлений и 8 удалений

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

@ -1803,14 +1803,10 @@ RestyleManager::PostRestyleEvent(Element* aElement,
mPendingRestyles.AddPendingRestyle(aElement, aRestyleHint, aMinChangeHint);
// Set mHavePendingNonAnimationRestyles for any restyle that could
// possibly contain non-animation styles. Unfortunately there's one
// level of the cascade and associated change hint
// (eRestyle_StyleAttribute) where we don't fully distinguish.
// FIXME (bug 1133439): We could at least distinguish by having two
// separate eRestyle_StyleAttribute hints, one for animations and one
// for other things.
if (aRestyleHint & ~(eRestyle_CSSTransitions | eRestyle_CSSAnimations |
eRestyle_SVGAttrAnimations)) {
// possibly contain non-animation styles (i.e., those that require us
// to do an animation-only style flush before processing style changes
// to ensure correct initialization of CSS transitions).
if (aRestyleHint & ~eRestyle_AllHintsWithAnimations) {
mHavePendingNonAnimationRestyles = true;
}