aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-30 14:12:20 +0200
committerMs2ger <ms2ger@gmail.com>2015-04-02 13:07:51 +0200
commitc8106da277faf76e612a4e88d0d2e5f9fbe9f885 (patch)
tree16f4de451b3f17de355e793c3d106fce8f477a71 /components/script/devtools.rs
parentbc8ed81dc1c7d37209693461bcd24d8ea386597c (diff)
downloadservo-c8106da277faf76e612a4e88d0d2e5f9fbe9f885.tar.gz
servo-c8106da277faf76e612a4e88d0d2e5f9fbe9f885.zip
Rewrite NodeChildrenIterator to return Temporary.
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r--components/script/devtools.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs
index 6f6bef0a7a2..56588941667 100644
--- a/components/script/devtools.rs
+++ b/components/script/devtools.rs
@@ -79,7 +79,10 @@ fn find_node_by_unique_id(page: &Rc<Page>, pipeline: PipelineId, node_id: String
pub fn handle_get_children(page: &Rc<Page>, pipeline: PipelineId, node_id: String, reply: Sender<Vec<NodeInfo>>) {
let parent = find_node_by_unique_id(&*page, pipeline, node_id).root();
- let children = parent.r().children().map(|child| child.summarize()).collect();
+ let children = parent.r().children().map(|child| {
+ let child = child.root();
+ child.r().summarize()
+ }).collect();
reply.send(children).unwrap();
}