mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove JS::get/get_mut to enforce sound rooting practices.
This commit is contained in:
parent
d7b96db33c
commit
dfdda0098a
13 changed files with 114 additions and 131 deletions
|
@ -61,9 +61,9 @@ impl DOMImplementation {
|
|||
Name => Err(NamespaceError),
|
||||
// Step 3.
|
||||
QName => {
|
||||
let document = self.owner.get().Document();
|
||||
let document = document.root(&roots);
|
||||
Ok(DocumentType::new(qname, Some(pubid), Some(sysid), &document.root_ref()))
|
||||
let owner = self.owner.root(&roots);
|
||||
let document = owner.deref().Document().root(&roots);
|
||||
Ok(DocumentType::new(qname, Some(pubid), Some(sysid), &*document))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue