diff options
author | Martin Robinson <mrobinson@igalia.com> | 2020-04-29 12:19:21 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2020-05-01 15:29:57 +0200 |
commit | 3903c1fb98373ae08323c36e147f2f041d6f0280 (patch) | |
tree | a6f8a7ac23540c944ceefbf526a1fcf8def91968 /components/script/dom/macros.rs | |
parent | 6fb75c2b9eb3825932a22b1c7a6d7ce03809fbb2 (diff) | |
download | servo-3903c1fb98373ae08323c36e147f2f041d6f0280.tar.gz servo-3903c1fb98373ae08323c36e147f2f041d6f0280.zip |
Add support for animationend event
This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.
This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and animationiteration` events.
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r-- | components/script/dom/macros.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index b1ea4f5cde2..871e831dc82 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -442,6 +442,7 @@ macro_rules! global_event_handlers( ); (NoOnload) => ( event_handler!(abort, GetOnabort, SetOnabort); + event_handler!(animationend, GetOnanimationend, SetOnanimationend); event_handler!(cancel, GetOncancel, SetOncancel); event_handler!(canplay, GetOncanplay, SetOncanplay); event_handler!(canplaythrough, GetOncanplaythrough, SetOncanplaythrough); |