mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
There is no need to clone for animation/transition declaration block.
Because it's a newly created Arc<Locked<PropertyDeclarationBlock> in get_animation_rule.
This commit is contained in:
parent
83a4935b60
commit
7a01a5f5c4
1 changed files with 2 additions and 2 deletions
|
@ -752,7 +752,7 @@ impl Stylist {
|
|||
if let Some(anim) = animation_rules.0 {
|
||||
Push::push(
|
||||
applicable_declarations,
|
||||
ApplicableDeclarationBlock::from_declarations(anim.clone(),
|
||||
ApplicableDeclarationBlock::from_declarations(anim,
|
||||
CascadeLevel::Animations));
|
||||
}
|
||||
debug!("animation: {:?}", relations);
|
||||
|
@ -808,7 +808,7 @@ impl Stylist {
|
|||
if let Some(anim) = animation_rules.1 {
|
||||
Push::push(
|
||||
applicable_declarations,
|
||||
ApplicableDeclarationBlock::from_declarations(anim.clone(), CascadeLevel::Transitions));
|
||||
ApplicableDeclarationBlock::from_declarations(anim, CascadeLevel::Transitions));
|
||||
}
|
||||
debug!("transition: {:?}", relations);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue