mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Add slots in PerPseudoElementMap for tree pseudos.
This commit is contained in:
parent
b743d68ccd
commit
4ce3dc7729
6 changed files with 203 additions and 185 deletions
|
@ -1995,7 +1995,6 @@ impl CascadeData {
|
|||
.as_mut()
|
||||
.expect("Expected precomputed declarations for the UA level")
|
||||
.get_or_insert_with(&pseudo.canonical(), Vec::new)
|
||||
.expect("Unexpected tree pseudo-element?")
|
||||
.push(ApplicableDeclarationBlock::new(
|
||||
StyleSource::Style(locked.clone()),
|
||||
self.rules_source_order,
|
||||
|
@ -2012,7 +2011,7 @@ impl CascadeData {
|
|||
let mut map = Box::new(SelectorMap::new());
|
||||
map.begin_mutation();
|
||||
map
|
||||
}).expect("Unexpected tree pseudo-element?")
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue