diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-14 09:18:49 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-14 09:18:49 +0100 |
commit | dcc00ffadf64270b0ae82431f5b71c527590e91b (patch) | |
tree | fc446e07283ce3a086f4f83a2fa9e559ab544d5a /dom/animation | |
parent | 34ef9d4683b3e81b8df1be1a9c38eae331e8c398 (diff) | |
download | uxp-dcc00ffadf64270b0ae82431f5b71c527590e91b.tar.gz |
Bug 1264125: Queue CSS related event when setting null target effect
Issue #55
Diffstat (limited to 'dom/animation')
-rw-r--r-- | dom/animation/Animation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/animation/Animation.cpp b/dom/animation/Animation.cpp index cefdbb76d4..242a0c6d66 100644 --- a/dom/animation/Animation.cpp +++ b/dom/animation/Animation.cpp @@ -729,8 +729,10 @@ TimeStamp Animation::ElapsedTimeToTimeStamp( const StickyTimeDuration& aElapsedTime) const { - return AnimationTimeToTimeStamp(aElapsedTime + - mEffect->SpecifiedTiming().mDelay); + TimeDuration delay = mEffect + ? mEffect->SpecifiedTiming().mDelay + : TimeDuration(); + return AnimationTimeToTimeStamp(aElapsedTime + delay); } |