Bug 1632363 - Add support for canceling CSS transitions. r=emilio
commit2561f2d6800b4fc56b3957b804bba6d415a2c4a6
authorMartin Robinson <mrobinson@igalia.com>
Tue, 21 Apr 2020 14:32:53 +0000 (21 16:32 +0200)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 23 Apr 2020 03:10:23 +0000 (23 05:10 +0200)
treee3fa65dbc2c4f6fe31486783b494e4faa58d37a0
parent34bc586539cce306045f07639776615705857920
Bug 1632363 - Add support for canceling CSS transitions. r=emilio

This change adds support for canceling CSS transitions when a property
is no longer transitionable or when an element becomes styled with
display:none. Support for canceling and replacing CSS transitions when
the end value changes is still pending. This change also takes advantage
of updating the constellation message to fix a bug where transition
events could be sent for closed pipelines.

Cherry-picked from https://github.com/servo/servo/pull/26244
(though this is not part of the Gecko build).
servo/components/style/animation.rs
servo/components/style/context.rs
servo/components/style/matching.rs