diff options
author | Martin Robinson <mrobinson@igalia.com> | 2020-04-23 17:06:24 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2020-04-24 14:20:37 +0200 |
commit | d386d6d1f1e1dba33b49e0b44d9216128f29da1c (patch) | |
tree | fe253bdd7d28cc06a606af1e6f9cc39332848652 /components/script_traits/lib.rs | |
parent | 0540c4a284952145773e3c86d0f57f69a83283f1 (diff) | |
download | servo-d386d6d1f1e1dba33b49e0b44d9216128f29da1c.tar.gz servo-d386d6d1f1e1dba33b49e0b44d9216128f29da1c.zip |
Add support for transitionrun events
These events are triggered as soon as a transition is added to the list
of running transitions. This will allow better test coverage while
reworking the transitions and animations processing model.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 7eb60241f5d..3db883b6536 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -283,8 +283,10 @@ pub enum UpdatePipelineIdReason { } /// The type of transition event to trigger. -#[derive(Clone, Copy, Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub enum TransitionEventType { + /// The transition has started running. + TransitionRun, /// The transition has ended by reaching the end of its animation. TransitionEnd, /// The transition ended early for some reason, such as the property |