diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-11 14:12:44 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-13 11:01:02 +0200 |
commit | e20d997b37d93d35d2a80761d8e125351d9165bc (patch) | |
tree | a8d976b5919028dc894fda2807b2987548eeba06 /components/script/devtools.rs | |
parent | c026825e69cab4f481773716fac4956610594ecb (diff) | |
download | servo-e20d997b37d93d35d2a80761d8e125351d9165bc.tar.gz servo-e20d997b37d93d35d2a80761d8e125351d9165bc.zip |
Use a simple Temporary value in TreeIterator
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r-- | components/script/devtools.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs index 56588941667..8b9bb84e830 100644 --- a/components/script/devtools.rs +++ b/components/script/devtools.rs @@ -69,8 +69,8 @@ fn find_node_by_unique_id(page: &Rc<Page>, pipeline: PipelineId, node_id: String let node: JSRef<Node> = NodeCast::from_ref(document.r()); for candidate in node.traverse_preorder() { - if candidate.get_unique_id() == node_id { - return Temporary::from_rooted(candidate); + if candidate.root().r().get_unique_id() == node_id { + return candidate; } } |