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/html/hubbub_html_parser.rs | |
parent | bbfed381686aef5703da53a104f9c05c6d3475c5 (diff) | |
download | servo-522d3f167b12fa79401eea5525c7b6133cae0f06.tar.gz servo-522d3f167b12fa79401eea5525c7b6133cae0f06.zip |
s/Unrooted/Temporary/g
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 9326ed6cb15..a0490c1621f 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -5,7 +5,7 @@ use dom::attr::AttrMethods; use dom::bindings::codegen::InheritTypes::{NodeBase, NodeCast, TextCast, ElementCast}; use dom::bindings::codegen::InheritTypes::HTMLIFrameElementCast; -use dom::bindings::js::{JS, JSRef, RootCollection, Unrooted, OptionalRootable, Root}; +use dom::bindings::js::{JS, JSRef, RootCollection, Temporary, OptionalRootable, Root}; use dom::bindings::utils::Reflectable; use dom::document::{Document, DocumentHelpers}; use dom::element::{AttributeHandlers, HTMLLinkElementTypeId, HTMLIFrameElementTypeId}; @@ -87,10 +87,10 @@ impl<'a, T: NodeBase+Reflectable> NodeWrapping<T> for JSRef<'a, T> { } unsafe fn from_hubbub_node<T: Reflectable>(n: hubbub::NodeDataPtr, - roots: Option<&RootCollection>) -> Unrooted<T> { + roots: Option<&RootCollection>) -> Temporary<T> { let js = JS::from_raw(cast::transmute(n)); let _ = roots.map(|roots| roots.unroot_raw(js.reflector().get_jsobject())); - Unrooted::new(js) + Temporary::new(js) } /** @@ -165,7 +165,7 @@ fn js_script_listener(to_parent: Sender<HtmlDiscoveryMessage>, // Silly macros to handle constructing DOM nodes. This produces bad code and should be optimized // via atomization (issue #85). -pub fn build_element_from_tag(tag: DOMString, document: &JSRef<Document>) -> Unrooted<Element> { +pub fn build_element_from_tag(tag: DOMString, document: &JSRef<Document>) -> Temporary<Element> { // TODO (Issue #85): use atoms handle_element!(document, tag, "a", HTMLAnchorElement); handle_element!(document, tag, "applet", HTMLAppletElement); |