Bug 1341372 - Part 2: Support has_css_transitions.

Add one FFI to check if there is any transition in CSSTransitionCollection.
This will be used to check if we need to update transition and if we
should compute the after-change style.

MozReview-Commit-ID: 6HpVAtrx6Rc
This commit is contained in:
Boris Chiou 2017-04-17 14:25:10 +08:00
parent 1c1e487491
commit b1476f1f81
4 changed files with 18 additions and 0 deletions

View file

@ -468,6 +468,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
fn has_css_animations(&self, _pseudo: Option<&PseudoElement>) -> bool {
panic!("this should be only called on gecko");
}
fn has_css_transitions(&self, _pseudo: Option<&PseudoElement>) -> bool {
panic!("this should be only called on gecko");
}
}
impl<'le> PartialEq for ServoLayoutElement<'le> {