Bug 1643201 - servo: Split animation cancellation from update_style_for_animation.
commit05ab25fd1b6c877a05e1bb88b14d89531b446eec
authorMartin Robinson <mrobinson@igalia.com>
Thu, 4 Jun 2020 00:34:09 +0000 (4 00:34 +0000)
committerMartin Robinson <mrobinson@igalia.com>
Thu, 4 Jun 2020 00:34:09 +0000 (4 00:34 +0000)
treebf2a154432d6677d47ac5ed0f0b180aef26b37d8
parent35c1ea7756ed5b7aeac3824baea773a34cf4f70e
Bug 1643201 - servo: Split animation cancellation from update_style_for_animation.

`update_style_for_animation` previously handled both canceling defunct
animations and also updating style to reflect current animation state.
This change splits those two concerns because we want to start handling
replaced or canceled animations and finished animations in two different
places.

This is a refactor, so ideally it shouldn't change any behavior.

Depends on D78185

Differential Revision: https://phabricator.services.mozilla.com/D78186
servo/components/style/animation.rs
servo/components/style/matching.rs