diff options
Diffstat (limited to 'components/style/selector_map.rs')
-rw-r--r-- | components/style/selector_map.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/style/selector_map.rs b/components/style/selector_map.rs index 9e0f01a2c9f..4d1ec302f15 100644 --- a/components/style/selector_map.rs +++ b/components/style/selector_map.rs @@ -94,9 +94,7 @@ pub trait SelectorMapEntry : Sized + Clone { /// * https://bugzilla.mozilla.org/show_bug.cgi?id=681755 /// /// TODO: Tune the initial capacity of the HashMap -#[derive(Debug)] -#[cfg_attr(feature = "gecko", derive(MallocSizeOf))] -#[cfg_attr(feature = "servo", derive(HeapSizeOf))] +#[derive(Debug, MallocSizeOf)] pub struct SelectorMap<T: 'static> { /// A hash from an ID to rules which contain that ID selector. pub id_hash: MaybeCaseInsensitiveHashMap<Atom, SmallVec<[T; 1]>>, @@ -465,9 +463,7 @@ fn find_bucket<'a>(mut iter: SelectorIter<'a, SelectorImpl>) -> Bucket<'a> { } /// Wrapper for PrecomputedHashMap that does ASCII-case-insensitive lookup in quirks mode. -#[derive(Debug)] -#[cfg_attr(feature = "gecko", derive(MallocSizeOf))] -#[cfg_attr(feature = "servo", derive(HeapSizeOf))] +#[derive(Debug, MallocSizeOf)] pub struct MaybeCaseInsensitiveHashMap<K: PrecomputedHash + Hash + Eq, V: 'static>(PrecomputedDiagnosticHashMap<K, V>); // FIXME(Manishearth) the 'static bound can be removed when |