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.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index cb61ced9e3a..c076282dcc1 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -353,12 +353,12 @@ pub fn blob_parts_to_bytes(blobparts: Vec<BlobOrString>) -> Result<Vec<u8>, ()>
impl BlobMethods for Blob {
// https://w3c.github.io/FileAPI/#dfn-size
fn Size(&self) -> u64 {
- match *self.blob_impl.borrow() {
- BlobImpl::File(ref f) => f.size,
- BlobImpl::Memory(ref v) => v.len() as u64,
- BlobImpl::Sliced(ref parent, ref rel_pos) =>
- rel_pos.to_abs_range(parent.Size() as usize).len() as u64,
- }
+ match *self.blob_impl.borrow() {
+ BlobImpl::File(ref f) => f.size,
+ BlobImpl::Memory(ref v) => v.len() as u64,
+ BlobImpl::Sliced(ref parent, ref rel_pos) =>
+ rel_pos.to_abs_range(parent.Size() as usize).len() as u64,
+ }
}
// https://w3c.github.io/FileAPI/#dfn-type