зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1149906 - Consider play-pending animations to be playing as well r=dbaron
This commit is contained in:
Родитель
953d3f8dfc
Коммит
f09556d158
|
@ -234,8 +234,11 @@ public:
|
|||
*/
|
||||
bool IsPlaying() const
|
||||
{
|
||||
return HasInPlaySource() && // Check we are in the active interval
|
||||
PlayState() == AnimationPlayState::Running; // And not paused
|
||||
// We need to have a source animation in its active interval, and
|
||||
// be either running or waiting to run.
|
||||
return HasInPlaySource() &&
|
||||
(PlayState() == AnimationPlayState::Running ||
|
||||
mPendingState == PendingState::PlayPending);
|
||||
}
|
||||
|
||||
bool IsRelevant() const { return mIsRelevant; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче