зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1263063 - Part 5: Introduce TimingParams::EndTime(). r=dholbert
MozReview-Commit-ID: 6dpnb65vndl --HG-- extra : rebase_source : b4c0046b893bf78ebec91d3308fcbfccf48a79d1
This commit is contained in:
Родитель
ffc5ef3515
Коммит
1b7f619907
|
@ -254,8 +254,7 @@ KeyframeEffectReadOnly::GetComputedTimingAt(
|
|||
result.mIterationStart = aTiming.mIterationStart;
|
||||
|
||||
result.mActiveDuration = aTiming.ActiveDuration();
|
||||
result.mEndTime = aTiming.mDelay + result.mActiveDuration +
|
||||
aTiming.mEndDelay;
|
||||
result.mEndTime = aTiming.EndTime();
|
||||
result.mFill = aTiming.mFill == dom::FillMode::Auto ?
|
||||
dom::FillMode::None :
|
||||
aTiming.mFill;
|
||||
|
|
|
@ -112,6 +112,11 @@ struct TimingParams
|
|||
return mDuration->MultDouble(mIterations);
|
||||
}
|
||||
|
||||
StickyTimeDuration EndTime() const
|
||||
{
|
||||
return mDelay + ActiveDuration() + mEndDelay;
|
||||
}
|
||||
|
||||
bool operator==(const TimingParams& aOther) const;
|
||||
bool operator!=(const TimingParams& aOther) const
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче