aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-09-16 22:35:41 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-09-16 22:54:24 +0530
commitbded5c370344c5ed77b706c36e0caf911fbe4e3d (patch)
treee0a44d00ec4d20e7057ff271a968b4454cfea971 /components/script/dom/document.rs
parent12dc54d23849f6bc90667e2df432e30587e4af49 (diff)
downloadservo-bded5c370344c5ed77b706c36e0caf911fbe4e3d.tar.gz
servo-bded5c370344c5ed77b706c36e0caf911fbe4e3d.zip
Add unrooted_must_root lint for usages of JS<T> in let/for bindings
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 97fb575fc01..5f2661f9e10 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -310,8 +310,8 @@ impl Document {
}
pub fn new(window: &JSRef<Window>, url: Option<Url>, doctype: IsHTMLDocument, content_type: Option<DOMString>) -> Temporary<Document> {
- let document = Document::new_inherited(window, url, doctype, content_type);
- let document = reflect_dom_object(box document, &Window(*window),
+ let document = reflect_dom_object(box Document::new_inherited(window, url, doctype, content_type),
+ &Window(*window),
DocumentBinding::Wrap).root();
let node: &JSRef<Node> = NodeCast::from_ref(&*document);