mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Skip update_animations if we have no running animations and the element becomes display:none.
This commit is contained in:
parent
9ff99d4608
commit
c32ba98031
5 changed files with 22 additions and 4 deletions
|
@ -450,6 +450,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
fn update_animations(&self, _pseudo: Option<&PseudoElement>) {
|
||||
panic!("this should be only called on gecko");
|
||||
}
|
||||
|
||||
fn has_css_animations(&self, _pseudo: Option<&PseudoElement>) -> bool {
|
||||
panic!("this should be only called on gecko");
|
||||
}
|
||||
}
|
||||
|
||||
impl<'le> PartialEq for ServoLayoutElement<'le> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue