diff options
author | Taym Haddadi <haddadi.taym@gmail.com> | 2024-02-25 13:13:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 12:13:17 +0000 |
commit | d0b663800f3faa7343791349c9b0e38e9aeacb82 (patch) | |
tree | b6c65c6bcd3a5b9a1f1da7e7367c2c498e972417 /components/script/dom/xrray.rs | |
parent | 32f1d07323db257db31fead024271d3a57d72b49 (diff) | |
download | servo-d0b663800f3faa7343791349c9b0e38e9aeacb82.tar.gz servo-d0b663800f3faa7343791349c9b0e38e9aeacb82.zip |
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 <haddadi.taym@gmail.com>
* Rename HeapBufferSourceTypes to HeapBufferSource
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* fmt code
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/xrray.rs')
-rw-r--r-- | components/script/dom/xrray.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<ApiSpace>, #[ignore_malloc_size_of = "defined in mozjs"] - matrix: HeapTypedArray<Float32>, + matrix: HeapBufferSource<Float32>, } 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.") } } |