aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/element_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/element_state.rs')
-rw-r--r--components/style/element_state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/element_state.rs b/components/style/element_state.rs
index 9b84bde45c1..e641c450123 100644
--- a/components/style/element_state.rs
+++ b/components/style/element_state.rs
@@ -4,7 +4,7 @@
bitflags! {
#[doc = "Event-based element states."]
- #[derive(HeapSizeOf)]
+ #[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub flags ElementState: u16 {
#[doc = "The mouse is down on this element. \
https://html.spec.whatwg.org/multipage/#selector-active \