From d0b663800f3faa7343791349c9b0e38e9aeacb82 Mon Sep 17 00:00:00 2001 From: Taym Haddadi Date: Sun, 25 Feb 2024 13:13:17 +0100 Subject: WedIDL: bring dom/bindings/typedarray further in line with spec (#31375) * WedIDL: bring dom/bindings/typedarray further in line with spec Signed-off-by: Bentaimia Haddadi * Rename HeapBufferSourceTypes to HeapBufferSource Signed-off-by: Bentaimia Haddadi * fmt code Signed-off-by: Bentaimia Haddadi --------- Signed-off-by: Bentaimia Haddadi --- components/script/dom/xrray.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/script/dom/xrray.rs') diff --git a/components/script/dom/xrray.rs b/components/script/dom/xrray.rs index a91395acb8a..b1d699761bd 100644 --- a/components/script/dom/xrray.rs +++ b/components/script/dom/xrray.rs @@ -8,7 +8,7 @@ use js::rust::HandleObject; use js::typedarray::{Float32, Float32Array}; use webxr_api::{ApiSpace, Ray}; -use super::bindings::typedarrays::HeapTypedArray; +use super::bindings::buffer_source::HeapBufferSource; use crate::dom::bindings::codegen::Bindings::DOMPointBinding::DOMPointInit; use crate::dom::bindings::codegen::Bindings::XRRayBinding::{XRRayDirectionInit, XRRayMethods}; use crate::dom::bindings::error::{Error, Fallible}; @@ -27,7 +27,7 @@ pub struct XRRay { #[no_trace] ray: Ray, #[ignore_malloc_size_of = "defined in mozjs"] - matrix: HeapTypedArray, + matrix: HeapBufferSource, } impl XRRay { @@ -35,7 +35,7 @@ impl XRRay { XRRay { reflector_: Reflector::new(), ray, - matrix: HeapTypedArray::default(), + matrix: HeapBufferSource::default(), } } @@ -163,7 +163,7 @@ impl XRRayMethods for XRRay { } self.matrix - .get_internal() + .get_buffer() .expect("Failed to get matrix from XRRay.") } } -- cgit v1.2.3