diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-04-17 17:08:00 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-05-03 14:18:31 -0400 |
commit | 522d3f167b12fa79401eea5525c7b6133cae0f06 (patch) | |
tree | e6c187b470348455fc53667e1af9fb4acf9b10f1 /src/components/script/dom/htmloptionelement.rs | |
parent | bbfed381686aef5703da53a104f9c05c6d3475c5 (diff) | |
download | servo-522d3f167b12fa79401eea5525c7b6133cae0f06.tar.gz servo-522d3f167b12fa79401eea5525c7b6133cae0f06.zip |
s/Unrooted/Temporary/g
Diffstat (limited to 'src/components/script/dom/htmloptionelement.rs')
-rw-r--r-- | src/components/script/dom/htmloptionelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs index e9793fc1690..dc0c6c291d8 100644 --- a/src/components/script/dom/htmloptionelement.rs +++ b/src/components/script/dom/htmloptionelement.rs @@ -4,7 +4,7 @@ use dom::bindings::codegen::BindingDeclarations::HTMLOptionElementBinding; use dom::bindings::codegen::InheritTypes::HTMLOptionElementDerived; -use dom::bindings::js::{JS, JSRef, Unrooted}; +use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLOptionElementTypeId; @@ -35,7 +35,7 @@ impl HTMLOptionElement { } } - pub fn new(localName: DOMString, document: &JSRef<Document>) -> Unrooted<HTMLOptionElement> { + pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLOptionElement> { let element = HTMLOptionElement::new_inherited(localName, document.unrooted()); Node::reflect_node(~element, document, HTMLOptionElementBinding::Wrap) } @@ -44,7 +44,7 @@ impl HTMLOptionElement { pub trait HTMLOptionElementMethods { fn Disabled(&self) -> bool; fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult; - fn GetForm(&self) -> Option<Unrooted<HTMLFormElement>>; + fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>; fn Label(&self) -> DOMString; fn SetLabel(&mut self, _label: DOMString) -> ErrorResult; fn DefaultSelected(&self) -> bool; @@ -67,7 +67,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> { Ok(()) } - fn GetForm(&self) -> Option<Unrooted<HTMLFormElement>> { + fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> { None } |