mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Add a temporary workaround for geckolib animations.
With needs_borrow we will be able to remove this, though we'll have to implement clone_ and borrow_ methods for a bunch of properties.
This commit is contained in:
parent
2faaf952c7
commit
bc4e670c5a
3 changed files with 11 additions and 0 deletions
|
@ -422,6 +422,11 @@ pub fn maybe_start_animations<Impl: SelectorImplExt>(context: &SharedStyleContex
|
|||
{
|
||||
let mut had_animations = false;
|
||||
|
||||
// FIXME(emilio): Implement animations for geckolib.
|
||||
if !new_style.is_servo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
let box_style = new_style.as_servo().get_box();
|
||||
for (i, name) in box_style.animation_name.0.iter().enumerate() {
|
||||
debug!("maybe_start_animations: name={}", name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue