Skip update_animations if we have no running animations and the element becomes display:none.

This commit is contained in:
Hiroyuki Ikezoe 2017-03-10 11:25:23 +09:00
parent 9ff99d4608
commit c32ba98031
5 changed files with 22 additions and 4 deletions

View file

@ -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> {