diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-04-10 17:11:08 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-05-03 14:18:30 -0400 |
commit | dfdda0098a3f169a37c100b36d4dd36ec1d815aa (patch) | |
tree | b4835f3c863c6e45849cf036faf5611925e10189 /src/components/script/dom/domimplementation.rs | |
parent | d7b96db33ca8f2b8a162df38e0f00e95f5ea6fa1 (diff) | |
download | servo-dfdda0098a3f169a37c100b36d4dd36ec1d815aa.tar.gz servo-dfdda0098a3f169a37c100b36d4dd36ec1d815aa.zip |
Remove JS::get/get_mut to enforce sound rooting practices.
Diffstat (limited to 'src/components/script/dom/domimplementation.rs')
-rw-r--r-- | src/components/script/dom/domimplementation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/domimplementation.rs b/src/components/script/dom/domimplementation.rs index 7cc9e5ef0d0..0e824306343 100644 --- a/src/components/script/dom/domimplementation.rs +++ b/src/components/script/dom/domimplementation.rs @@ -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)) } } } |