diff options
author | Connor Brewster <brewsterc@my.caspercollege.edu> | 2016-05-11 13:21:16 -0600 |
---|---|---|
committer | Connor Brewster <brewsterc@my.caspercollege.edu> | 2016-05-11 13:21:16 -0600 |
commit | 9efd214b1e2f4dc8af907bec2ca04eb93fba6eb8 (patch) | |
tree | 3921bb581014781dbbd3fcda60f5e6ebf1a40e4c /components/script/script_thread.rs | |
parent | cbc5ca65a8fed0542a74b8917b5d8d6450714478 (diff) | |
download | servo-9efd214b1e2f4dc8af907bec2ca04eb93fba6eb8.tar.gz servo-9efd214b1e2f4dc8af907bec2ca04eb93fba6eb8.zip |
removed instances of &Root<BrowsingContext>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 008af6ba040..3102a0181e9 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1665,7 +1665,7 @@ impl ScriptThread { } /// Reflows non-incrementally, rebuilding the entire layout tree in the process. - fn rebuild_and_force_reflow(&self, context: &Root<BrowsingContext>, reason: ReflowReason) { + fn rebuild_and_force_reflow(&self, context: &BrowsingContext, reason: ReflowReason) { let document = context.active_document(); document.dirty_all_nodes(); let window = window_from_node(document.r()); @@ -1980,7 +1980,7 @@ impl Drop for ScriptThread { } /// Shuts down layout for the given browsing context tree. -fn shut_down_layout(context_tree: &Root<BrowsingContext>) { +fn shut_down_layout(context_tree: &BrowsingContext) { let mut channels = vec!(); for context in context_tree.iter() { @@ -2010,7 +2010,7 @@ fn shut_down_layout(context_tree: &Root<BrowsingContext>) { } } -pub fn get_browsing_context(context: &Root<BrowsingContext>, +pub fn get_browsing_context(context: &BrowsingContext, pipeline_id: PipelineId) -> Root<BrowsingContext> { context.find(pipeline_id).expect("ScriptThread: received an event \ |