Clean up the cast calls

This commit is contained in:
Anthony Ramine 2015-10-07 14:55:02 +02:00
parent 13ea3ac413
commit 68014af78e
66 changed files with 412 additions and 718 deletions

View file

@ -44,8 +44,7 @@ pub fn load_script(head: &HTMLHeadElement) {
let new_script = doc.CreateElement("script".to_owned()).unwrap();
let new_script = new_script.r();
new_script.set_string_attribute(&atom!("src"), name);
let new_script_node = new_script.upcast::<Node>();
node.InsertBefore(new_script_node, first_child.r()).unwrap();
node.InsertBefore(new_script.upcast(), first_child.r()).unwrap();
}
}
}