mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
style: Reset the per-pseudo-element maps when update()
is called
This was causing panics in stylo.
This commit is contained in:
parent
9c44062836
commit
227e39d558
1 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,10 @@ impl<Impl: SelectorImplExt> Stylist<Impl> {
|
|||
|
||||
self.element_map = PerPseudoElementSelectorMap::new();
|
||||
self.pseudos_map = HashMap::with_hasher(Default::default());
|
||||
Impl::each_eagerly_cascaded_pseudo_element(|pseudo| {
|
||||
self.pseudos_map.insert(pseudo, PerPseudoElementSelectorMap::new());
|
||||
});
|
||||
|
||||
self.non_eagerly_cascaded_pseudo_element_decls = HashMap::with_hasher(Default::default());
|
||||
self.rules_source_order = 0;
|
||||
self.state_deps.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue