diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 2 | ||||
-rw-r--r-- | components/script/dom/blob.rs | 12 | ||||
-rw-r--r-- | components/script/dom/dommatrixreadonly.rs | 2 | ||||
-rw-r--r-- | components/script/dom/element.rs | 2 | ||||
-rw-r--r-- | components/script/dom/node.rs | 2 | ||||
-rw-r--r-- | components/script/dom/treewalker.rs | 2 | ||||
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 9c798c42500..1bc9c165fb1 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -728,7 +728,7 @@ impl<T: JSTraceable> RootableVec<T> { RootableVec { v: vec![], } - } + } } /// A vector of items that are rooted for the lifetime 'a. 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 diff --git a/components/script/dom/dommatrixreadonly.rs b/components/script/dom/dommatrixreadonly.rs index 4f6331e0dd7..875e8e6f42c 100644 --- a/components/script/dom/dommatrixreadonly.rs +++ b/components/script/dom/dommatrixreadonly.rs @@ -37,7 +37,7 @@ impl DOMMatrixReadOnly { reflector_: Reflector::new(), matrix: DOMRefCell::new(matrix), is2D: Cell::new(is2D), - } + } } // https://drafts.fxtf.org/geometry-1/#dom-dommatrixreadonly-dommatrixreadonly diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 8baba9bb54d..8912abba6ae 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -2599,7 +2599,7 @@ impl Element { self.has_attribute(&local_name!("href")) }, _ => false, - } + } } /// Please call this method *only* for real click events diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index e21dfa2bee0..ea0638a006f 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2383,7 +2383,7 @@ impl NodeMethods for Node { // Step 2. Node::namespace_to_string(Node::locate_namespace(self, prefix)) - } + } // https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace fn IsDefaultNamespace(&self, namespace: Option<DOMString>) -> bool { diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 24925b9f0d9..2409d65af4f 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -457,7 +457,7 @@ impl<'a> Iterator for &'a TreeWalker { // will probably be using a native Rust filter, // which cannot produce an Err result. unreachable!() - } + } } } diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index f13f7f02d9b..8d99e1303d0 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -1795,7 +1795,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext { // WebGl conformance expects error with null programs. Check tests in get-active-test.html self.webgl_error(InvalidValue); return None; - } + } }; match program.get_active_uniform(index) { @@ -1822,7 +1822,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext { // WebGl conformance expects error with null programs. Check tests in get-active-test.html self.webgl_error(InvalidValue); return None; - } + } }; match program.get_active_attrib(index) { |