aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-02-14 14:42:35 +0100
committerMs2ger <Ms2ger@gmail.com>2017-02-16 11:03:22 +0100
commit3613e8f231a06142abb726a28bcd8847e768708c (patch)
treed5f627d7faf8490ad624709e5572cd3bd8607f89 /components/script/dom/bindings/js.rs
parent8ce9ca624367c8e5737b8673548b230b69f4558b (diff)
downloadservo-3613e8f231a06142abb726a28bcd8847e768708c.tar.gz
servo-3613e8f231a06142abb726a28bcd8847e768708c.zip
Implement JSTraceable for more types.
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index bdd2b81ce37..e63177e3bd8 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -642,3 +642,9 @@ impl<T: DomObject> Drop for Root<T> {
}
}
}
+
+unsafe impl<T: DomObject> JSTraceable for Root<T> {
+ unsafe fn trace(&self, _: *mut JSTracer) {
+ // Already traced.
+ }
+}