mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 960465 patch 21 - Replace one use of nsRestyleHint_ChangeAnimationPhase with nsRestyleHint_AllHintsWithAnimations so that we can remove the rest. r=birtles
This commit is contained in:
parent
04535c3f75
commit
8c28244fab
@ -374,6 +374,12 @@ enum nsRestyleHint {
|
||||
// eRestyle_Subtree, which makes us rerun selector matching on all
|
||||
// descendants rather than just continuing the restyling process.
|
||||
eRestyle_ForceDescendants = (1<<10),
|
||||
|
||||
// Useful unions:
|
||||
eRestyle_AllHintsWithAnimations = eRestyle_CSSTransitions |
|
||||
eRestyle_CSSAnimations |
|
||||
eRestyle_SVGAttrAnimations |
|
||||
eRestyle_StyleAttribute,
|
||||
};
|
||||
|
||||
// The functions below need an integral type to cast to to avoid
|
||||
|
@ -582,7 +582,7 @@ nsAnimationManager::BuildAnimations(nsStyleContext* aStyleContext,
|
||||
if (!styleWithoutAnimation) {
|
||||
styleWithoutAnimation = mPresContext->StyleSet()->
|
||||
ResolveStyleWithoutAnimation(aTarget, aStyleContext,
|
||||
eRestyle_ChangeAnimationPhase);
|
||||
eRestyle_AllHintsWithAnimations);
|
||||
}
|
||||
interpolated = interpolated &&
|
||||
BuildSegment(propData.mSegments, prop, src,
|
||||
@ -601,7 +601,7 @@ nsAnimationManager::BuildAnimations(nsStyleContext* aStyleContext,
|
||||
if (!styleWithoutAnimation) {
|
||||
styleWithoutAnimation = mPresContext->StyleSet()->
|
||||
ResolveStyleWithoutAnimation(aTarget, aStyleContext,
|
||||
eRestyle_ChangeAnimationPhase);
|
||||
eRestyle_AllHintsWithAnimations);
|
||||
}
|
||||
interpolated = interpolated &&
|
||||
BuildSegment(propData.mSegments, prop, src,
|
||||
|
@ -1422,10 +1422,7 @@ nsStyleSet::RuleNodeWithReplacement(Element* aElement,
|
||||
// are in these four levels.
|
||||
if (aReplacements & (eRestyle_ChangeAnimationPhase |
|
||||
eRestyle_ChangeAnimationPhaseDescendants)) {
|
||||
aReplacements |= eRestyle_CSSTransitions |
|
||||
eRestyle_CSSAnimations |
|
||||
eRestyle_SVGAttrAnimations |
|
||||
eRestyle_StyleAttribute;
|
||||
aReplacements |= eRestyle_AllHintsWithAnimations;
|
||||
}
|
||||
|
||||
// FIXME (perf): This should probably not rebuild the whole path, but
|
||||
|
@ -149,7 +149,7 @@ class nsStyleSet
|
||||
|
||||
// Resolve style by returning a style context with the specified
|
||||
// animation data removed. It is allowable to remove all animation
|
||||
// data with eRestyle_ChangeAnimationPhase, or by using any other
|
||||
// data with eRestyle_AllHintsWithAnimations, or by using any other
|
||||
// hints that are allowed by ResolveStyleWithReplacement.
|
||||
already_AddRefed<nsStyleContext>
|
||||
ResolveStyleWithoutAnimation(mozilla::dom::Element* aElement,
|
||||
|
Loading…
Reference in New Issue
Block a user