Add an FFI to check that a given (pseudo-) element has any type of animations or not.

If an element has any type of animations in match_elements(), we need to call
UpdateEffectProperties() to update KeyframeEffectReadOnly::mProperties.
This commit is contained in:
Hiroyuki Ikezoe 2017-03-27 17:31:50 +09:00
parent 4aae0e29d6
commit 0c843d4b7d
4 changed files with 19 additions and 0 deletions

View file

@ -455,6 +455,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
panic!("this should be only called on gecko");
}
fn has_animations(&self, _pseudo: Option<&PseudoElement>) -> bool {
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");
}