From 9efd214b1e2f4dc8af907bec2ca04eb93fba6eb8 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Wed, 11 May 2016 13:21:16 -0600 Subject: removed instances of &Root --- components/script/devtools.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'components/script/devtools.rs') diff --git a/components/script/devtools.rs b/components/script/devtools.rs index 08cae43283e..7fea809a594 100644 --- a/components/script/devtools.rs +++ b/components/script/devtools.rs @@ -65,7 +65,7 @@ pub fn handle_evaluate_js(global: &GlobalRef, eval: String, reply: IpcSender, pipeline: PipelineId, reply: IpcSender) { +pub fn handle_get_root_node(context: &BrowsingContext, pipeline: PipelineId, reply: IpcSender) { let context = get_browsing_context(context, pipeline); let document = context.active_document(); @@ -73,7 +73,7 @@ pub fn handle_get_root_node(context: &Root, pipeline: PipelineI reply.send(node.summarize()).unwrap(); } -pub fn handle_get_document_element(context: &Root, +pub fn handle_get_document_element(context: &BrowsingContext, pipeline: PipelineId, reply: IpcSender) { let context = get_browsing_context(context, pipeline); @@ -84,7 +84,7 @@ pub fn handle_get_document_element(context: &Root, reply.send(node.summarize()).unwrap(); } -fn find_node_by_unique_id(context: &Root, +fn find_node_by_unique_id(context: &BrowsingContext, pipeline: PipelineId, node_id: String) -> Root { @@ -101,7 +101,7 @@ fn find_node_by_unique_id(context: &Root, panic!("couldn't find node with unique id {}", node_id) } -pub fn handle_get_children(context: &Root, +pub fn handle_get_children(context: &BrowsingContext, pipeline: PipelineId, node_id: String, reply: IpcSender>) { @@ -112,7 +112,7 @@ pub fn handle_get_children(context: &Root, reply.send(children).unwrap(); } -pub fn handle_get_layout(context: &Root, +pub fn handle_get_layout(context: &BrowsingContext, pipeline: PipelineId, node_id: String, reply: IpcSender) { @@ -202,7 +202,7 @@ pub fn handle_get_cached_messages(_pipeline_id: PipelineId, reply.send(messages).unwrap(); } -pub fn handle_modify_attribute(context: &Root, +pub fn handle_modify_attribute(context: &BrowsingContext, pipeline: PipelineId, node_id: String, modifications: Vec) { @@ -224,20 +224,20 @@ pub fn handle_wants_live_notifications(global: &GlobalRef, send_notifications: b global.set_devtools_wants_updates(send_notifications); } -pub fn handle_set_timeline_markers(context: &Root, +pub fn handle_set_timeline_markers(context: &BrowsingContext, marker_types: Vec, reply: IpcSender) { let window = context.active_window(); window.set_devtools_timeline_markers(marker_types, reply); } -pub fn handle_drop_timeline_markers(context: &Root, +pub fn handle_drop_timeline_markers(context: &BrowsingContext, marker_types: Vec) { let window = context.active_window(); window.drop_devtools_timeline_markers(marker_types); } -pub fn handle_request_animation_frame(context: &Root, +pub fn handle_request_animation_frame(context: &BrowsingContext, id: PipelineId, actor_name: String) { let context = context.find(id).expect("There is no such context"); -- cgit v1.2.3