aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <hikezoe@mozilla.com>2017-03-10 11:25:23 +0900
committerHiroyuki Ikezoe <hikezoe@mozilla.com>2017-03-10 11:37:05 +0900
commitc32ba980316ae3eaaacda03763b6ab7b52bc64e0 (patch)
tree1d3593aaa18bd62714cfaa451c228a65dfc19fac /components/script/layout_wrapper.rs
parent9ff99d4608d2c096ccb04bef05bb24c99d6cfa1a (diff)
downloadservo-c32ba980316ae3eaaacda03763b6ab7b52bc64e0.tar.gz
servo-c32ba980316ae3eaaacda03763b6ab7b52bc64e0.zip
Skip update_animations if we have no running animations and the element becomes display:none.
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 a9b175ab060..b8a38247fd7 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -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> {