aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2023-05-28 23:25:41 -0400
committerJosh Matthews <josh@joshmatthews.net>2023-05-28 23:54:02 -0400
commit0e8ac3fdac83227d4bbc8d1d74ea021fa627280a (patch)
treeb26c252a84a3e5e67158ef65385979fdb1174784 /components/script/dom/htmltableelement.rs
parentdbff26bce05d404027ef5bbfd85fb5995e4726bc (diff)
downloadservo-0e8ac3fdac83227d4bbc8d1d74ea021fa627280a.tar.gz
servo-0e8ac3fdac83227d4bbc8d1d74ea021fa627280a.zip
Formatting.
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r--components/script/dom/htmltableelement.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index d807d14890c..50a1152fb7c 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -138,7 +138,8 @@ impl HTMLTableElement {
return section;
}
- let section = HTMLTableSectionElement::new(atom.clone(), None, &document_from_node(self), None);
+ let section =
+ HTMLTableSectionElement::new(atom.clone(), None, &document_from_node(self), None);
match atom {
&local_name!("thead") => self.SetTHead(Some(&section)),
&local_name!("tfoot") => self.SetTFoot(Some(&section)),
@@ -299,8 +300,12 @@ impl HTMLTableElementMethods for HTMLTableElement {
// https://html.spec.whatwg.org/multipage/#dom-table-createtbody
fn CreateTBody(&self) -> DomRoot<HTMLTableSectionElement> {
- let tbody =
- HTMLTableSectionElement::new(local_name!("tbody"), None, &document_from_node(self), None);
+ let tbody = HTMLTableSectionElement::new(
+ local_name!("tbody"),
+ None,
+ &document_from_node(self),
+ None,
+ );
let node = self.upcast::<Node>();
let last_tbody = node
.rev_children()
@@ -322,7 +327,8 @@ impl HTMLTableElementMethods for HTMLTableElement {
return Err(Error::IndexSize);
}
- let new_row = HTMLTableRowElement::new(local_name!("tr"), None, &document_from_node(self), None);
+ let new_row =
+ HTMLTableRowElement::new(local_name!("tr"), None, &document_from_node(self), None);
let node = self.upcast::<Node>();
if number_of_row_elements == 0 {