Auto merge of #18572 - hiikezoe:immportant-in-keyframe, r=emilio

Handle !important in keyframe

<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1400926

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18572)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-09-20 13:40:12 -05:00 committed by GitHub
commit 46ae11b5d0
4 changed files with 54 additions and 10 deletions

View file

@ -3609,10 +3609,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 {