mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
This commit is contained in:
parent
c9f26dfd59
commit
1dad710063
61 changed files with 479 additions and 471 deletions
|
@ -75,7 +75,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
match old_caption {
|
||||
Some(htmlelem) => {
|
||||
let htmlelem_root = htmlelem.root();
|
||||
let old_caption_node: JSRef<Node> = NodeCast::from_ref(*htmlelem_root);
|
||||
let old_caption_node: JSRef<Node> = NodeCast::from_ref(htmlelem_root.r());
|
||||
assert!(node.RemoveChild(old_caption_node).is_ok());
|
||||
}
|
||||
None => ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue