From dd4907c985a3f38d5e8e5808cbbbef60cbb47620 Mon Sep 17 00:00:00 2001 From: Arthur Marble Date: Sat, 17 Sep 2016 19:25:40 -0500 Subject: [PATCH] Refactor isClosed_ to is_closed and relativeContentType to relative_content_type. --- components/script/dom/blob.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index 75433a64de9f..d9a45d356651 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -74,7 +74,7 @@ pub struct Blob { blob_impl: DOMRefCell, /// content-type string type_string: String, - isClosed_: Cell, + is_closed: Cell, } impl Blob { @@ -92,13 +92,13 @@ impl Blob { // NOTE: Guarding the format correctness here, // https://w3c.github.io/FileAPI/#dfn-type type_string: normalize_type_string(&type_string), - isClosed_: Cell::new(false), + is_closed: Cell::new(false), } } #[allow(unrooted_must_root)] fn new_sliced(parent: &Blob, rel_pos: RelativePos, - relativeContentType: DOMString) -> Root { + relative_content_type: DOMString) -> Root { let global = parent.global(); let blob_impl = match *parent.blob_impl.borrow() { BlobImpl::File(_) => { @@ -115,7 +115,7 @@ impl Blob { } }; - Blob::new(global.r(), blob_impl, relativeContentType.into()) + Blob::new(global.r(), blob_impl, relative_content_type.into()) } // https://w3c.github.io/FileAPI/#constructorBlob @@ -381,18 +381,18 @@ impl BlobMethods for Blob { // https://w3c.github.io/FileAPI/#dfn-isClosed fn IsClosed(&self) -> bool { - self.isClosed_.get() + self.is_closed.get() } // https://w3c.github.io/FileAPI/#dfn-close fn Close(&self) { // Step 1 - if self.isClosed_.get() { + if self.is_closed.get() { return; } // Step 2 - self.isClosed_.set(true); + self.is_closed.set(true); // Step 3 self.clean_up_file_resource();