Remove Temporary::new()

Temporary::from_rooted() now takes an Assignable value.
This commit is contained in:
Anthony Ramine 2015-04-27 18:34:15 +02:00
parent 2770886196
commit 1a30925cad
19 changed files with 45 additions and 48 deletions

View file

@ -64,7 +64,7 @@ impl TreeWalker {
impl<'a> TreeWalkerMethods for JSRef<'a, TreeWalker> {
// https://dom.spec.whatwg.org/#dom-treewalker-root
fn Root(self) -> Temporary<Node> {
Temporary::new(self.root_node)
Temporary::from_rooted(self.root_node)
}
// https://dom.spec.whatwg.org/#dom-treewalker-whattoshow
@ -83,7 +83,7 @@ impl<'a> TreeWalkerMethods for JSRef<'a, TreeWalker> {
// https://dom.spec.whatwg.org/#dom-treewalker-currentnode
fn CurrentNode(self) -> Temporary<Node> {
Temporary::new(self.current_node.get())
Temporary::from_rooted(self.current_node.get())
}
// https://dom.spec.whatwg.org/#dom-treewalker-currentnode