From 2513c8e24a6a63cbb96c91f3b79f0ecbf311e5de Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 27 Mar 2017 17:38:32 +0900 Subject: [PATCH] Call UpdateEffectProperties for stylo. --- components/style/matching.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style/matching.rs b/components/style/matching.rs index edf97c044f9..323561abca9 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -638,7 +638,7 @@ trait PrivateMatchMethods: TElement { new_values: &mut Arc, pseudo: Option<&PseudoElement>, _possibly_expired_animations: &mut Vec) { - use context::CSS_ANIMATIONS; + use context::{CSS_ANIMATIONS, EFFECT_PROPERTIES}; use context::UpdateAnimationsTasks; let ref new_box_style = new_values.get_box(); @@ -664,6 +664,9 @@ trait PrivateMatchMethods: TElement { if needs_update_animations { tasks.insert(CSS_ANIMATIONS); } + if self.has_animations(pseudo) { + tasks.insert(EFFECT_PROPERTIES); + } if !tasks.is_empty() { let task = SequentialTask::update_animations(self.as_node().as_element().unwrap(), pseudo.cloned(),