diff options
author | Arthur Marble <arthur@info9.net> | 2016-09-17 18:28:28 -0500 |
---|---|---|
committer | Arthur Marble <arthur@info9.net> | 2016-09-17 20:31:46 -0500 |
commit | e7ffbf819af2162336c0b1f6f8f467bfc19e4590 (patch) | |
tree | f75d93c81706b4fbad17b9401d297c565970c5b6 /components/script/dom/blob.rs | |
parent | 5ce3510a50cd908708efdce9e18749f1596d197f (diff) | |
download | servo-e7ffbf819af2162336c0b1f6f8f467bfc19e4590.tar.gz servo-e7ffbf819af2162336c0b1f6f8f467bfc19e4590.zip |
Replace typeString with type_string.
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index 78990f40564..75433a64de9 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -73,7 +73,7 @@ pub struct Blob { #[ignore_heap_size_of = "No clear owner"] blob_impl: DOMRefCell<BlobImpl>, /// content-type string - typeString: String, + type_string: String, isClosed_: Cell<bool>, } @@ -85,13 +85,13 @@ impl Blob { } #[allow(unrooted_must_root)] - pub fn new_inherited(blob_impl: BlobImpl, typeString: String) -> Blob { + pub fn new_inherited(blob_impl: BlobImpl, type_string: String) -> Blob { Blob { reflector_: Reflector::new(), blob_impl: DOMRefCell::new(blob_impl), // NOTE: Guarding the format correctness here, // https://w3c.github.io/FileAPI/#dfn-type - typeString: normalize_type_string(&typeString), + type_string: normalize_type_string(&type_string), isClosed_: Cell::new(false), } } @@ -222,7 +222,7 @@ impl Blob { let blob_buf = BlobBuf { filename: None, - type_string: self.typeString.clone(), + type_string: self.type_string.clone(), size: bytes.len() as u64, bytes: bytes.to_vec(), }; @@ -366,7 +366,7 @@ impl BlobMethods for Blob { // https://w3c.github.io/FileAPI/#dfn-type fn Type(&self) -> DOMString { - DOMString::from(self.typeString.clone()) + DOMString::from(self.type_string.clone()) } // https://w3c.github.io/FileAPI/#slice-method-algo |