aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <hikezoe@mozilla.com>2017-03-27 17:31:50 +0900
committerHiroyuki Ikezoe <hikezoe@mozilla.com>2017-03-27 17:32:18 +0900
commit0c843d4b7da62843d6a25b140c66841cf3cce0f8 (patch)
tree8598cbe3aa1ea6c27404f75a17e25718a3d17dbc /components/script/layout_wrapper.rs
parent4aae0e29d6ffabec1564b794abc942531c7d9380 (diff)
downloadservo-0c843d4b7da62843d6a25b140c66841cf3cce0f8.tar.gz
servo-0c843d4b7da62843d6a25b140c66841cf3cce0f8.zip
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.
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 aa93b38fd45..872cf913d9f 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -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");
}