mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Track only the number of important declarations in a declaration block
This commit is contained in:
parent
daee53cb76
commit
908b9627a2
5 changed files with 8 additions and 33 deletions
|
@ -47,8 +47,6 @@ fn property_declaration_block_should_serialize_correctly() {
|
|||
let block = PropertyDeclarationBlock {
|
||||
declarations: Arc::new(declarations),
|
||||
|
||||
// Incorrect, but not used here:
|
||||
normal_count: 0,
|
||||
important_count: 0,
|
||||
};
|
||||
|
||||
|
@ -67,8 +65,6 @@ mod shorthand_serialization {
|
|||
let block = PropertyDeclarationBlock {
|
||||
declarations: Arc::new(properties.into_iter().map(|d| (d, Importance::Normal)).collect()),
|
||||
|
||||
// Incorrect, but not used here:
|
||||
normal_count: 0,
|
||||
important_count: 0,
|
||||
};
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@ fn test_parse_stylesheet() {
|
|||
(PropertyDeclaration::Custom(Atom::from("a"), DeclaredValue::Inherit),
|
||||
Importance::Important),
|
||||
]),
|
||||
normal_count: 0,
|
||||
important_count: 2,
|
||||
},
|
||||
}),
|
||||
|
@ -152,7 +151,6 @@ fn test_parse_stylesheet() {
|
|||
longhands::display::SpecifiedValue::block)),
|
||||
Importance::Normal),
|
||||
]),
|
||||
normal_count: 1,
|
||||
important_count: 0,
|
||||
},
|
||||
}),
|
||||
|
@ -208,7 +206,6 @@ fn test_parse_stylesheet() {
|
|||
(PropertyDeclaration::BackgroundClip(DeclaredValue::Initial),
|
||||
Importance::Normal),
|
||||
]),
|
||||
normal_count: 8,
|
||||
important_count: 0,
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue