mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Assert if there is an important declaration while collecting animated properties in keyframes.
Parser has already dropped it.
This commit is contained in:
parent
a80725c91b
commit
35192b03c3
1 changed files with 3 additions and 1 deletions
|
@ -254,7 +254,9 @@ fn get_animated_properties(keyframe: &Keyframe) -> Vec<TransitionProperty> {
|
||||||
let mut ret = vec![];
|
let mut ret = vec![];
|
||||||
// NB: declarations are already deduplicated, so we don't have to check for
|
// NB: declarations are already deduplicated, so we don't have to check for
|
||||||
// it here.
|
// 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) {
|
if let Some(property) = TransitionProperty::from_declaration(declaration) {
|
||||||
ret.push(property);
|
ret.push(property);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue