зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1238660 part 1 - Make mWinsInCascade initially false; r=hiro
As of bug 1228229, the mWinsInCascade member of animation properties is set consistently for both animations and transitions such that we only set this to true if an animation is "in effect". When an effect is initially created it is not "in effect" until it is attached to a non-idle animation. We should, therefore, initialize this to false and, when we become in effect, mark the cascade as needing an update.
This commit is contained in:
Родитель
a8ff928f0d
Коммит
7f1681beaa
|
@ -1381,7 +1381,6 @@ BuildSegmentsFromValueEntries(nsTArray<KeyframeValueEntry>& aEntries,
|
|||
MOZ_ASSERT(aEntries[i].mOffset == 0.0f);
|
||||
animationProperty = aResult.AppendElement();
|
||||
animationProperty->mProperty = aEntries[i].mProperty;
|
||||
animationProperty->mWinsInCascade = true;
|
||||
lastProperty = aEntries[i].mProperty;
|
||||
}
|
||||
|
||||
|
@ -1583,7 +1582,6 @@ BuildAnimationPropertyListFromPropertyIndexedKeyframes(
|
|||
animationPropertyIndexes[i] = aResult.Length();
|
||||
AnimationProperty* animationProperty = aResult.AppendElement();
|
||||
animationProperty->mProperty = p;
|
||||
animationProperty->mWinsInCascade = true;
|
||||
properties.AddProperty(p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,9 +131,10 @@ struct AnimationProperty
|
|||
// For CSS Animations, which are overridden by !important rules in the
|
||||
// cascade, we actually determine this from the CSS cascade
|
||||
// computations, and then use it for OMTA.
|
||||
//
|
||||
// **NOTE**: This member is not included when comparing AnimationProperty
|
||||
// objects for equality.
|
||||
bool mWinsInCascade = true;
|
||||
bool mWinsInCascade = false;
|
||||
|
||||
// If true, the propery is currently being animated on the compositor.
|
||||
//
|
||||
|
@ -141,6 +142,9 @@ struct AnimationProperty
|
|||
// between calling RequestRestyle on its AnimationCollection and when the
|
||||
// restyle is performed, this member may temporarily become false even if
|
||||
// the animation remains on the layer after the restyle.
|
||||
//
|
||||
// **NOTE**: This member is not included when comparing AnimationProperty
|
||||
// objects for equality.
|
||||
bool mIsRunningOnCompositor = false;
|
||||
|
||||
InfallibleTArray<AnimationPropertySegment> mSegments;
|
||||
|
|
Загрузка…
Ссылка в новой задаче