mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove intrinsic Root::r()
This commit is contained in:
parent
51bcf516c8
commit
0b3ab875f4
55 changed files with 275 additions and 310 deletions
|
@ -21,7 +21,6 @@ pub fn load_script(head: &HTMLHeadElement) {
|
|||
let node = head.upcast::<Node>();
|
||||
let first_child = node.GetFirstChild();
|
||||
let doc = node.owner_doc();
|
||||
let doc = doc.r();
|
||||
|
||||
let path = if &**path_str == "" {
|
||||
if let Ok(mut p) = resources_dir_path() {
|
||||
|
@ -46,7 +45,6 @@ pub fn load_script(head: &HTMLHeadElement) {
|
|||
_ => continue
|
||||
};
|
||||
let new_script = doc.CreateElement(DOMString::from("script")).unwrap();
|
||||
let new_script = new_script.r();
|
||||
new_script.set_string_attribute(&atom!("src"), DOMString::from(name));
|
||||
node.InsertBefore(new_script.upcast(), first_child.r()).unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue