summaryrefslogtreecommitdiffstats
path: root/dom/animation/Animation.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-14 09:16:03 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-14 09:16:03 +0100
commit34ef9d4683b3e81b8df1be1a9c38eae331e8c398 (patch)
tree2536466cf07202d6502938eb004d9c2f672def84 /dom/animation/Animation.h
parent4644a03770ef95fd3acbaa205fae339b3a99f599 (diff)
downloadUXP-34ef9d4683b3e81b8df1be1a9c38eae331e8c398.tar
UXP-34ef9d4683b3e81b8df1be1a9c38eae331e8c398.tar.gz
UXP-34ef9d4683b3e81b8df1be1a9c38eae331e8c398.tar.lz
UXP-34ef9d4683b3e81b8df1be1a9c38eae331e8c398.tar.xz
UXP-34ef9d4683b3e81b8df1be1a9c38eae331e8c398.zip
Bug 1264125: Call the queueing events when canceling transition via Style or Script
Issue #55
Diffstat (limited to 'dom/animation/Animation.h')
-rw-r--r--dom/animation/Animation.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/animation/Animation.h b/dom/animation/Animation.h
index c59d7d6ce..3263b30c4 100644
--- a/dom/animation/Animation.h
+++ b/dom/animation/Animation.h
@@ -326,6 +326,16 @@ public:
void NotifyEffectTimingUpdated();
+ /**
+ * Used by subclasses to synchronously queue a cancel event in situations
+ * where the Animation may have been cancelled.
+ *
+ * We need to do this synchronously because after a CSS animation/transition
+ * is canceled, it will be released by its owning element and may not still
+ * exist when we would normally go to queue events on the next tick.
+ */
+ virtual void MaybeQueueCancelEvent(StickyTimeDuration aActiveTime) {};
+
protected:
void SilentlySetCurrentTime(const TimeDuration& aNewCurrentTime);
void SilentlySetPlaybackRate(double aPlaybackRate);