mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Temporarily use OrderMap on Gecko.
This will allow us to discard std hash map as a source of crashes.
This commit is contained in:
parent
a2c2d34753
commit
4d9ce6b880
3 changed files with 30 additions and 14 deletions
|
@ -273,7 +273,7 @@ impl InvalidationMap {
|
|||
|
||||
for class in compound_visitor.classes {
|
||||
self.class_to_selector
|
||||
.entry(class, quirks_mode)
|
||||
.try_entry(class, quirks_mode)?
|
||||
.or_insert_with(SmallVec::new)
|
||||
.try_push(Dependency {
|
||||
selector: selector.clone(),
|
||||
|
@ -283,7 +283,7 @@ impl InvalidationMap {
|
|||
|
||||
for id in compound_visitor.ids {
|
||||
self.id_to_selector
|
||||
.entry(id, quirks_mode)
|
||||
.try_entry(id, quirks_mode)?
|
||||
.or_insert_with(SmallVec::new)
|
||||
.try_push(Dependency {
|
||||
selector: selector.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue