diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-09-01 03:18:42 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-12-11 22:46:50 +0800 |
commit | 6e8a85482c2068d4dbccb992954271f725570f91 (patch) | |
tree | b30f6d82a018df0b196fa4d47d3b6667d708313e /components/script/dom/testbinding.rs | |
parent | 7aa68c8fe7ca0865a7323ab1e5b9526efa588ca2 (diff) | |
download | servo-6e8a85482c2068d4dbccb992954271f725570f91.tar.gz servo-6e8a85482c2068d4dbccb992954271f725570f91.zip |
re-structure blob, structured serialization
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 31972afe948..475f432417f 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -44,7 +44,7 @@ use crate::dom::bindings::root::DomRoot; use crate::dom::bindings::str::{ByteString, DOMString, USVString}; use crate::dom::bindings::trace::RootedTraceableBox; use crate::dom::bindings::weakref::MutableWeakRef; -use crate::dom::blob::{Blob, BlobImpl}; +use crate::dom::blob::Blob; use crate::dom::globalscope::GlobalScope; use crate::dom::promise::Promise; use crate::dom::promisenativehandler::{Callback, PromiseNativeHandler}; @@ -58,6 +58,7 @@ use js::jsval::{JSVal, NullValue}; use js::rust::CustomAutoRooterGuard; use js::rust::{HandleObject, HandleValue}; use js::typedarray; +use script_traits::serializable::BlobImpl; use script_traits::MsDuration; use servo_config::prefs; use std::borrow::ToOwned; @@ -174,8 +175,7 @@ impl TestBindingMethods for TestBinding { fn InterfaceAttribute(&self) -> DomRoot<Blob> { Blob::new( &self.global(), - BlobImpl::new_from_bytes(vec![]), - "".to_owned(), + BlobImpl::new_from_bytes(vec![], "".to_owned()), ) } fn SetInterfaceAttribute(&self, _: &Blob) {} @@ -320,8 +320,7 @@ impl TestBindingMethods for TestBinding { fn GetInterfaceAttributeNullable(&self) -> Option<DomRoot<Blob>> { Some(Blob::new( &self.global(), - BlobImpl::new_from_bytes(vec![]), - "".to_owned(), + BlobImpl::new_from_bytes(vec![], "".to_owned()), )) } fn SetInterfaceAttributeNullable(&self, _: Option<&Blob>) {} @@ -415,8 +414,7 @@ impl TestBindingMethods for TestBinding { fn ReceiveInterface(&self) -> DomRoot<Blob> { Blob::new( &self.global(), - BlobImpl::new_from_bytes(vec![]), - "".to_owned(), + BlobImpl::new_from_bytes(vec![], "".to_owned()), ) } fn ReceiveAny(&self, _: SafeJSContext) -> JSVal { @@ -464,8 +462,7 @@ impl TestBindingMethods for TestBinding { fn ReceiveInterfaceSequence(&self) -> Vec<DomRoot<Blob>> { vec![Blob::new( &self.global(), - BlobImpl::new_from_bytes(vec![]), - "".to_owned(), + BlobImpl::new_from_bytes(vec![], "".to_owned()), )] } fn ReceiveUnionIdentity( @@ -530,8 +527,7 @@ impl TestBindingMethods for TestBinding { fn ReceiveNullableInterface(&self) -> Option<DomRoot<Blob>> { Some(Blob::new( &self.global(), - BlobImpl::new_from_bytes(vec![]), - "".to_owned(), + BlobImpl::new_from_bytes(vec![], "".to_owned()), )) } fn ReceiveNullableObject(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>> { |