mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Remove another stale todo in animation.rs
There's no mutex anymore.
This commit is contained in:
parent
7f2a9478f0
commit
d5a24b79d9
1 changed files with 8 additions and 10 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue