Filter out !important property in keyframes for stylo.

This commit is contained in:
Hiroyuki Ikezoe 2017-09-20 15:58:39 +09:00
parent c6381c66a0
commit a940999795
3 changed files with 48 additions and 6 deletions

View file

@ -3596,10 +3596,9 @@ pub extern "C" fn Servo_StyleSet_GetKeyframesForName(raw_data: RawServoStyleSetB
},
KeyframesStepValue::Declarations { ref block } => {
let guard = block.read_with(&guard);
// Filter out non-animatable properties.
// Filter out non-animatable properties and properties with !important.
let animatable =
guard.declarations()
.iter()
guard.normal_declaration_iter()
.filter(|declaration| declaration.is_animatable());
for declaration in animatable {