mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.
Bug: 1477628 Reviewed-by: heycam
This commit is contained in:
parent
0cab212052
commit
fc9df0bcf3
18 changed files with 49 additions and 44 deletions
|
@ -5,7 +5,7 @@
|
|||
//! Code related to the invalidation of media-query-affected rules.
|
||||
|
||||
use context::QuirksMode;
|
||||
use fnv::FnvHashSet;
|
||||
use fxhash::FxHashSet;
|
||||
use media_queries::Device;
|
||||
use shared_lock::SharedRwLockReadGuard;
|
||||
use stylesheets::{DocumentRule, ImportRule, MediaRule};
|
||||
|
@ -54,14 +54,14 @@ impl ToMediaListKey for MediaRule {}
|
|||
#[derive(Debug, MallocSizeOf, PartialEq)]
|
||||
pub struct EffectiveMediaQueryResults {
|
||||
/// The set of media lists that matched last time.
|
||||
set: FnvHashSet<MediaListKey>,
|
||||
set: FxHashSet<MediaListKey>,
|
||||
}
|
||||
|
||||
impl EffectiveMediaQueryResults {
|
||||
/// Trivially constructs an empty `EffectiveMediaQueryResults`.
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
set: FnvHashSet::default(),
|
||||
set: FxHashSet::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue