diff options
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 06ec5b92d89..9e1373279ab 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -53,6 +53,7 @@ use style::stylesheet_set::{AuthorStylesheetSet, DocumentStylesheetSet}; use tendril::fmt::UTF8; use tendril::stream::LossyDecoder; use tendril::TendrilSink; +#[cfg(feature = "webxr")] use webxr_api::{Finger, Hand}; use crate::dom::bindings::cell::DomRefCell; @@ -424,6 +425,7 @@ where } } +#[cfg(feature = "webxr")] unsafe impl<J> CustomTraceable for Hand<J> where J: JSTraceable, @@ -454,6 +456,7 @@ where } } +#[cfg(feature = "webxr")] unsafe impl<J> CustomTraceable for Finger<J> where J: JSTraceable, |