aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index fe0bd2647a4..9400d9f133d 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -42,8 +42,13 @@ impl Blob {
Self::new_with_proto(global, None, blob_impl)
}
- fn new_with_proto(global: &GlobalScope, proto: Option<HandleObject>, blob_impl: BlobImpl) -> DomRoot<Blob> {
- let dom_blob = reflect_dom_object2(Box::new(Blob::new_inherited(&blob_impl)), global, proto);
+ fn new_with_proto(
+ global: &GlobalScope,
+ proto: Option<HandleObject>,
+ blob_impl: BlobImpl,
+ ) -> DomRoot<Blob> {
+ let dom_blob =
+ reflect_dom_object2(Box::new(Blob::new_inherited(&blob_impl)), global, proto);
global.track_blob(&dom_blob, blob_impl);
dom_blob
}