Assert if there is an important declaration while collecting animated properties in keyframes.

Parser has already dropped it.
This commit is contained in:
Hiroyuki Ikezoe 2017-01-23 15:11:27 +09:00
parent a80725c91b
commit 35192b03c3

View file

@ -254,7 +254,9 @@ fn get_animated_properties(keyframe: &Keyframe) -> Vec<TransitionProperty> {
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);
}