diff options
Diffstat (limited to 'components/script/dom/htmldirectoryelement.rs')
-rw-r--r-- | components/script/dom/htmldirectoryelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmldirectoryelement.rs b/components/script/dom/htmldirectoryelement.rs index 7c0eeb0d616..3f1fcfd4759 100644 --- a/components/script/dom/htmldirectoryelement.rs +++ b/components/script/dom/htmldirectoryelement.rs @@ -4,7 +4,7 @@ use dom::bindings::codegen::Bindings::HTMLDirectoryElementBinding; use dom::bindings::codegen::InheritTypes::HTMLDirectoryElementDerived; -use dom::bindings::js::{JSRef, Temporary}; +use dom::bindings::js::Root; use dom::document::Document; use dom::element::ElementTypeId; use dom::eventtarget::{EventTarget, EventTargetTypeId}; @@ -28,7 +28,7 @@ impl HTMLDirectoryElementDerived for EventTarget { impl HTMLDirectoryElement { fn new_inherited(localName: DOMString, prefix: Option<DOMString>, - document: JSRef<Document>) -> HTMLDirectoryElement { + document: &Document) -> HTMLDirectoryElement { HTMLDirectoryElement { htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLDirectoryElement, localName, prefix, document) @@ -38,7 +38,7 @@ impl HTMLDirectoryElement { #[allow(unrooted_must_root)] pub fn new(localName: DOMString, prefix: Option<DOMString>, - document: JSRef<Document>) -> Temporary<HTMLDirectoryElement> { + document: &Document) -> Root<HTMLDirectoryElement> { let element = HTMLDirectoryElement::new_inherited(localName, prefix, document); Node::reflect_node(box element, document, HTMLDirectoryElementBinding::Wrap) } |