diff options
author | Taym Haddadi <haddadi.taym@gmail.com> | 2024-02-26 15:21:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 14:21:46 +0000 |
commit | a9a7e8a5cfbd57b7b164a027f5afdcacc298751d (patch) | |
tree | c6107331b3ade7b961cc4d7aecbfe2d221a6106e /components/script/dom/imagedata.rs | |
parent | ef8a0b7f7be8dce5a09f771822c112692a0f9921 (diff) | |
download | servo-a9a7e8a5cfbd57b7b164a027f5afdcacc298751d.tar.gz servo-a9a7e8a5cfbd57b7b164a027f5afdcacc298751d.zip |
Rename buffer_source_type to buffer_source (#31426)
* Rename buffer_source_type to buffer_source
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Code format
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r-- | components/script/dom/imagedata.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs index ba11fcd05c5..95fb34b5979 100644 --- a/components/script/dom/imagedata.rs +++ b/components/script/dom/imagedata.rs @@ -14,7 +14,7 @@ use js::rust::HandleObject; use js::typedarray::{ClampedU8, CreateWith, Uint8ClampedArray}; use super::bindings::buffer_source::{ - new_initialized_heap_buffer_source_types, BufferSource, HeapBufferSource, HeapTypedArrayInit, + new_initialized_heap_buffer_source, BufferSource, HeapBufferSource, HeapTypedArrayInit, }; use crate::dom::bindings::codegen::Bindings::CanvasRenderingContext2DBinding::ImageDataMethods; use crate::dom::bindings::error::{Error, Fallible}; @@ -63,7 +63,7 @@ impl ImageData { opt_height: Option<u32>, jsobject: *mut JSObject, ) -> Fallible<DomRoot<ImageData>> { - let heap_typed_array = match new_initialized_heap_buffer_source_types::<ClampedU8>( + let heap_typed_array = match new_initialized_heap_buffer_source::<ClampedU8>( HeapTypedArrayInit::Buffer(BufferSource::Uint8ClampedArray(Heap::boxed(jsobject))), ) { Ok(heap_typed_array) => heap_typed_array, @@ -117,7 +117,7 @@ impl ImageData { let len = width * height * 4; let heap_typed_array = - match new_initialized_heap_buffer_source_types::<ClampedU8>(HeapTypedArrayInit::Info { + match new_initialized_heap_buffer_source::<ClampedU8>(HeapTypedArrayInit::Info { len, cx, }) { |