aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index bb8adc3dcef..0583fc7edd7 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -223,6 +223,14 @@ macro_rules! no_jsmanaged_fields(
}
}
);
+ ($ty:ident<$($gen:ident: $bound:ident),+>) => (
+ impl<$($gen: $bound),+> $crate::dom::bindings::trace::JSTraceable for $ty<$($gen),+> {
+ #[inline]
+ fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
+ // Do nothing
+ }
+ }
+ );
);
/// These are used to generate a event handler which has no special case.