diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-03-30 14:12:20 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-02 13:07:51 +0200 |
commit | c8106da277faf76e612a4e88d0d2e5f9fbe9f885 (patch) | |
tree | 16f4de451b3f17de355e793c3d106fce8f477a71 /components/script/devtools.rs | |
parent | bc8ed81dc1c7d37209693461bcd24d8ea386597c (diff) | |
download | servo-c8106da277faf76e612a4e88d0d2e5f9fbe9f885.tar.gz servo-c8106da277faf76e612a4e88d0d2e5f9fbe9f885.zip |
Rewrite NodeChildrenIterator to return Temporary.
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r-- | components/script/devtools.rs | 5 |
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(); } |