style: Remove another stale todo in animation.rs

There's no mutex anymore.
This commit is contained in:
Emilio Cobos Álvarez 2017-09-08 23:30:44 +02:00
parent 7f2a9478f0
commit d5a24b79d9
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -419,17 +419,15 @@ impl PropertyAnimation {
/// Inserts transitions into the queue of running animations as applicable for
/// the given style difference. This is called from the layout worker threads.
/// Returns true if any animations were kicked off and false otherwise.
//
// TODO(emilio): Take rid of this mutex splitting SharedLayoutContex into a
// cloneable part and a non-cloneable part..
#[cfg(feature = "servo")]
pub fn start_transitions_if_applicable(new_animations_sender: &Sender<Animation>,
pub fn start_transitions_if_applicable(
new_animations_sender: &Sender<Animation>,
opaque_node: OpaqueNode,
old_style: &ComputedValues,
new_style: &mut Arc<ComputedValues>,
timer: &Timer,
possibly_expired_animations: &[PropertyAnimation])
-> bool {
possibly_expired_animations: &[PropertyAnimation]
) -> bool {
let mut had_animations = false;
for i in 0..new_style.get_box().transition_property_count() {
// Create any property animations, if applicable.