aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/servo/selector_parser.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-07-27 16:49:04 +1000
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-08-08 01:34:35 +0200
commitfc9df0bcf3af1b42c624a8f869168f7648d66f5e (patch)
tree684599de73ac6cda484f67e7c26fb69020fac48e /components/style/servo/selector_parser.rs
parent0cab212052a09ccb595917fe914e54e56be0bbdf (diff)
downloadservo-fc9df0bcf3af1b42c624a8f869168f7648d66f5e.tar.gz
servo-fc9df0bcf3af1b42c624a8f869168f7648d66f5e.zip
style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.
Bug: 1477628 Reviewed-by: heycam
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r--components/style/servo/selector_parser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs
index 894148a1786..2083539f51b 100644
--- a/components/style/servo/selector_parser.rs
+++ b/components/style/servo/selector_parser.rs
@@ -11,7 +11,7 @@ use attr::{AttrIdentifier, AttrValue};
use cssparser::{serialize_identifier, CowRcStr, Parser as CssParser, SourceLocation, ToCss};
use dom::{OpaqueNode, TElement, TNode};
use element_state::{DocumentState, ElementState};
-use fnv::FnvHashMap;
+use fxhash::FxHashMap;
use invalidation::element::document_state::InvalidationMatchingData;
use invalidation::element::element_wrapper::ElementSnapshot;
use properties::{ComputedValues, PropertyFlags};
@@ -617,12 +617,12 @@ impl SelectorImpl {
/// A map from elements to snapshots for the Servo style back-end.
#[derive(Debug)]
-pub struct SnapshotMap(FnvHashMap<OpaqueNode, ServoElementSnapshot>);
+pub struct SnapshotMap(FxHashMap<OpaqueNode, ServoElementSnapshot>);
impl SnapshotMap {
/// Create a new empty `SnapshotMap`.
pub fn new() -> Self {
- SnapshotMap(FnvHashMap::default())
+ SnapshotMap(FxHashMap::default())
}
/// Get a snapshot given an element.
@@ -632,7 +632,7 @@ impl SnapshotMap {
}
impl Deref for SnapshotMap {
- type Target = FnvHashMap<OpaqueNode, ServoElementSnapshot>;
+ type Target = FxHashMap<OpaqueNode, ServoElementSnapshot>;
fn deref(&self) -> &Self::Target {
&self.0