aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-13 04:52:32 -0500
committerbors-servo <metajack+bors@gmail.com>2015-04-13 04:52:32 -0500
commit1e45d025b381390f346e8f24db615cb698033844 (patch)
treea8d976b5919028dc894fda2807b2987548eeba06 /components/script/devtools.rs
parent9d027bab0a9601437842acb738b326c7e5547844 (diff)
parente20d997b37d93d35d2a80761d8e125351d9165bc (diff)
downloadservo-1e45d025b381390f346e8f24db615cb698033844.tar.gz
servo-1e45d025b381390f346e8f24db615cb698033844.zip
Auto merge of #5645 - nox:treeiterator-temporary, r=Ms2ger
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;
}
}