зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181392 part 10 - Remove KeyframeEffect::IsFinishedTransition; r=dbaron
This commit is contained in:
Родитель
883db6aa8f
Коммит
1b304dcec6
|
@ -912,9 +912,6 @@ Animation::UpdateFinishedState(SeekFlag aSeekFlag,
|
|||
DoFinishNotification(aSyncNotifyFlag);
|
||||
} else if (!currentFinishedState && mFinishedIsResolved) {
|
||||
ResetFinishedPromise();
|
||||
if (mEffect->AsTransition()) {
|
||||
mEffect->SetIsFinishedTransition(false);
|
||||
}
|
||||
}
|
||||
// We must recalculate the current time to take account of any mHoldTime
|
||||
// changes the code above made.
|
||||
|
|
|
@ -196,7 +196,6 @@ public:
|
|||
: AnimationEffectReadOnly(aDocument)
|
||||
, mTarget(aTarget)
|
||||
, mTiming(aTiming)
|
||||
, mIsFinishedTransition(false)
|
||||
, mPseudoType(aPseudoType)
|
||||
{
|
||||
MOZ_ASSERT(aTarget, "null animation target is not yet supported");
|
||||
|
@ -282,20 +281,6 @@ public:
|
|||
static StickyTimeDuration
|
||||
ActiveDuration(const AnimationTiming& aTiming);
|
||||
|
||||
// After transitions finish they need to be retained in order to
|
||||
// address the issue described in
|
||||
// https://lists.w3.org/Archives/Public/www-style/2015Jan/0444.html .
|
||||
// However, finished transitions are ignored for many purposes.
|
||||
bool IsFinishedTransition() const {
|
||||
return mIsFinishedTransition;
|
||||
}
|
||||
|
||||
void SetIsFinishedTransition(bool aIsFinished) {
|
||||
MOZ_ASSERT(AsTransition(),
|
||||
"Calling SetIsFinishedTransition but it's not a transition");
|
||||
mIsFinishedTransition = aIsFinished;
|
||||
}
|
||||
|
||||
bool IsInPlay(const Animation& aAnimation) const;
|
||||
bool IsCurrent(const Animation& aAnimation) const;
|
||||
bool IsInEffect() const;
|
||||
|
@ -328,9 +313,6 @@ protected:
|
|||
Nullable<TimeDuration> mParentTime;
|
||||
|
||||
AnimationTiming mTiming;
|
||||
// A flag to mark transitions that have finished and are due to
|
||||
// be removed on the next throttle-able cycle.
|
||||
bool mIsFinishedTransition;
|
||||
nsCSSPseudoElements::Type mPseudoType;
|
||||
|
||||
InfallibleTArray<AnimationProperty> mProperties;
|
||||
|
|
Загрузка…
Ссылка в новой задаче