mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
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.
This commit is contained in:
parent
0540c4a284
commit
d386d6d1f1
11 changed files with 105 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue