mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Formatting.
This commit is contained in:
parent
dbff26bce0
commit
0e8ac3fdac
81 changed files with 588 additions and 206 deletions
|
@ -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(§ion)),
|
||||
&local_name!("tfoot") => self.SetTFoot(Some(§ion)),
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue