aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmllielement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmllielement.rs')
-rw-r--r--components/script/dom/htmllielement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmllielement.rs b/components/script/dom/htmllielement.rs
index f8d8b0939c8..658664c82c4 100644
--- a/components/script/dom/htmllielement.rs
+++ b/components/script/dom/htmllielement.rs
@@ -4,7 +4,7 @@
use dom::bindings::codegen::Bindings::HTMLLIElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLIElementDerived;
-use dom::bindings::js::{JSRef, Temporary};
+use dom::bindings::js::Root;
use dom::document::Document;
use dom::eventtarget::{EventTarget, EventTargetTypeId};
use dom::element::ElementTypeId;
@@ -26,7 +26,7 @@ impl HTMLLIElementDerived for EventTarget {
}
impl HTMLLIElement {
- fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLLIElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: &Document) -> HTMLLIElement {
HTMLLIElement {
htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLLIElement, localName, prefix, document)
}
@@ -35,7 +35,7 @@ impl HTMLLIElement {
#[allow(unrooted_must_root)]
pub fn new(localName: DOMString,
prefix: Option<DOMString>,
- document: JSRef<Document>) -> Temporary<HTMLLIElement> {
+ document: &Document) -> Root<HTMLLIElement> {
let element = HTMLLIElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLLIElementBinding::Wrap)
}