aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-04-11 14:12:44 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-04-13 11:01:02 +0200
commite20d997b37d93d35d2a80761d8e125351d9165bc (patch)
treea8d976b5919028dc894fda2807b2987548eeba06 /components/script/devtools.rs
parentc026825e69cab4f481773716fac4956610594ecb (diff)
downloadservo-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.rs4
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;
}
}