aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2018-02-19 15:12:13 +1100
committerXidorn Quan <me@upsuper.org>2018-02-19 15:12:13 +1100
commitf518e55c286e161b36d54408b7f52296f649a006 (patch)
treebaae928159f0ae4f3b94f1e8763ae8af3605586d /components/style/stylesheet_set.rs
parentd423e54d58d6cced950896eed1957ee2989f4eee (diff)
downloadservo-f518e55c286e161b36d54408b7f52296f649a006.tar.gz
servo-f518e55c286e161b36d54408b7f52296f649a006.zip
Add sizeof for AuthorStyles.
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index bfe4724f09f..56a384353bf 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -13,7 +13,7 @@ use std::{mem, slice};
use stylesheets::{Origin, OriginSet, OriginSetIterator, PerOrigin, StylesheetInDocument};
/// Entry for a StylesheetSet.
-#[cfg_attr(feature = "servo", derive(MallocSizeOf))]
+#[derive(MallocSizeOf)]
struct StylesheetSetEntry<S>
where
S: StylesheetInDocument + PartialEq + 'static,
@@ -103,8 +103,7 @@ where
}
/// The validity of the data in a given cascade origin.
-#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
-#[cfg_attr(feature = "servo", derive(MallocSizeOf))]
+#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Ord, PartialEq, PartialOrd)]
pub enum DataValidity {
/// The origin is clean, all the data already there is valid, though we may
/// have new sheets at the end.
@@ -231,7 +230,7 @@ where
}
}
-#[cfg_attr(feature = "servo", derive(MallocSizeOf))]
+#[derive(MallocSizeOf)]
struct SheetCollection<S>
where
S: StylesheetInDocument + PartialEq + 'static,
@@ -558,6 +557,7 @@ where
}
/// The set of stylesheets effective for a given XBL binding or Shadow Root.
+#[derive(MallocSizeOf)]
pub struct AuthorStylesheetSet<S>
where
S: StylesheetInDocument + PartialEq + 'static,