mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Make PropertyDeclarationBlock::important_count private.
This commit is contained in:
@@ -385,10 +385,9 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
||||
#[inline]
|
||||
fn from_declaration(declaration: PropertyDeclaration) -> ApplicableDeclarationBlock {
|
||||
ApplicableDeclarationBlock::from_declarations(
|
||||
Arc::new(RwLock::new(PropertyDeclarationBlock {
|
||||
declarations: vec![(declaration, Importance::Normal)],
|
||||
important_count: 0,
|
||||
})),
|
||||
Arc::new(RwLock::new(PropertyDeclarationBlock::with_one(
|
||||
declaration, Importance::Normal
|
||||
))),
|
||||
CascadeLevel::PresHints)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user