From 35192b03c31eef1275fdb823f4fbc51db601697a Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 23 Jan 2017 15:11:27 +0900 Subject: [PATCH] Assert if there is an important declaration while collecting animated properties in keyframes. Parser has already dropped it. --- components/style/keyframes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/keyframes.rs b/components/style/keyframes.rs index eca73f1f848..07de56158ea 100644 --- a/components/style/keyframes.rs +++ b/components/style/keyframes.rs @@ -254,7 +254,9 @@ fn get_animated_properties(keyframe: &Keyframe) -> Vec { let mut ret = vec![]; // NB: declarations are already deduplicated, so we don't have to check for // it here. - for &(ref declaration, _) in keyframe.block.read().declarations.iter() { + for &(ref declaration, importance) in keyframe.block.read().declarations.iter() { + assert!(!importance.important()); + if let Some(property) = TransitionProperty::from_declaration(declaration) { ret.push(property); }