aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2017-04-17 14:25:10 +0800
committerBoris Chiou <boris.chiou@gmail.com>2017-04-17 17:06:31 +0800
commitb1476f1f81ced4b6e1b23a08f1a216c3b90e80f8 (patch)
tree90ee81f0885ddc274d399314ccf152681c983d59 /components/script/layout_wrapper.rs
parent1c1e487491c5de4f6d9c686d82b1d3049568336c (diff)
downloadservo-b1476f1f81ced4b6e1b23a08f1a216c3b90e80f8.tar.gz
servo-b1476f1f81ced4b6e1b23a08f1a216c3b90e80f8.zip
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
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index e4df1b77ec3..12d830e5fad 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -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> {