diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-14 14:42:35 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 11:03:22 +0100 |
commit | 3613e8f231a06142abb726a28bcd8847e768708c (patch) | |
tree | d5f627d7faf8490ad624709e5572cd3bd8607f89 /components/script/dom/bindings/js.rs | |
parent | 8ce9ca624367c8e5737b8673548b230b69f4558b (diff) | |
download | servo-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.rs | 6 |
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. + } +} |