mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
This commit is contained in:
parent
87e7e3d429
commit
c38c964f1b
38 changed files with 118 additions and 109 deletions
|
@ -190,7 +190,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
|
|||
|
||||
if let Some(caption) = new_caption {
|
||||
let node = self.upcast::<Node>();
|
||||
node.InsertBefore(caption.upcast(), node.GetFirstChild().deref())
|
||||
node.InsertBefore(caption.upcast(), node.GetFirstChild().as_deref())
|
||||
.expect("Insertion failed");
|
||||
}
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
|
|||
fn filter(&self, elem: &Element, root: &Node) -> bool {
|
||||
elem.is::<HTMLTableSectionElement>() &&
|
||||
elem.local_name() == &local_name!("tbody") &&
|
||||
elem.upcast::<Node>().GetParentNode().deref() == Some(root)
|
||||
elem.upcast::<Node>().GetParentNode().as_deref() == Some(root)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -303,7 +303,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
|
|||
.find(|n| n.is::<HTMLTableSectionElement>() && n.local_name() == &local_name!("tbody"));
|
||||
let reference_element = last_tbody.and_then(|t| t.upcast::<Node>().GetNextSibling());
|
||||
|
||||
node.InsertBefore(tbody.upcast(), reference_element.deref())
|
||||
node.InsertBefore(tbody.upcast(), reference_element.as_deref())
|
||||
.expect("Insertion failed");
|
||||
tbody
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue