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 /// Inserts transitions into the queue of running animations as applicable for
/// the given style difference. This is called from the layout worker threads. /// the given style difference. This is called from the layout worker threads.
/// Returns true if any animations were kicked off and false otherwise. /// 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")] #[cfg(feature = "servo")]
pub fn start_transitions_if_applicable(new_animations_sender: &Sender<Animation>, pub fn start_transitions_if_applicable(
opaque_node: OpaqueNode, new_animations_sender: &Sender<Animation>,
old_style: &ComputedValues, opaque_node: OpaqueNode,
new_style: &mut Arc<ComputedValues>, old_style: &ComputedValues,
timer: &Timer, new_style: &mut Arc<ComputedValues>,
possibly_expired_animations: &[PropertyAnimation]) timer: &Timer,
-> bool { possibly_expired_animations: &[PropertyAnimation]
) -> bool {
let mut had_animations = false; let mut had_animations = false;
for i in 0..new_style.get_box().transition_property_count() { for i in 0..new_style.get_box().transition_property_count() {
// Create any property animations, if applicable. // Create any property animations, if applicable.