Add stub XRRay

This commit is contained in:
Manish Goregaokar 2020-04-08 14:29:55 -07:00
parent 7f353033f4
commit b6a9e41bb8
4 changed files with 52 additions and 0 deletions

View file

@ -158,6 +158,7 @@ use webgpu::{
};
use webrender_api::{DocumentId, ImageKey};
use webxr_api::SwapChainId as WebXRSwapChainId;
use webxr_api::Ray;
unsafe_no_jsmanaged_fields!(Tm);
@ -750,6 +751,13 @@ unsafe impl<U> JSTraceable for euclid::Rect<i32, U> {
}
}
unsafe impl<Space> JSTraceable for Ray<Space> {
#[inline]
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing
}
}
unsafe impl JSTraceable for StyleLocked<FontFaceRule> {
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing.