diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-25 09:26:04 -0500 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-25 09:26:04 -0500 |
commit | f03e8fc937b5bc5b22c2595ffd17bee41a825b5f (patch) | |
tree | afd1dbffa77c28421020842b6ef58868c22f5f5c /components/script/script_thread.rs | |
parent | ee299b5e9efa394c0a67f0df7644ef2897705123 (diff) | |
parent | 4f893ee96e92ebbf50409ac451b6ab4eb344f68c (diff) | |
download | servo-f03e8fc937b5bc5b22c2595ffd17bee41a825b5f.tar.gz servo-f03e8fc937b5bc5b22c2595ffd17bee41a825b5f.zip |
Auto merge of #11375 - servo:layout_to_constellation_chan, r=mbrubeck
Remove ScriptThread::layout_to_constellation_chan.
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because refactoring
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
Instead, pass it along in NewLayoutInfo when needed.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11375)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index ffb4125845b..a0066e219f9 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -79,8 +79,8 @@ use script_runtime::{ScriptPort, StackRootTLS, new_rt_and_cx, get_reports}; use script_traits::CompositorEvent::{KeyEvent, MouseButtonEvent, MouseMoveEvent, ResizeEvent}; use script_traits::CompositorEvent::{TouchEvent, TouchpadPressureEvent}; use script_traits::{CompositorEvent, ConstellationControlMsg, EventResult}; -use script_traits::{InitialScriptState, MouseButton, MouseEventType, MozBrowserEvent, NewLayoutInfo}; -use script_traits::{LayoutMsg, ScriptMsg as ConstellationMsg}; +use script_traits::{InitialScriptState, MouseButton, MouseEventType, MozBrowserEvent}; +use script_traits::{NewLayoutInfo, ScriptMsg as ConstellationMsg}; use script_traits::{ScriptThreadFactory, TimerEvent, TimerEventRequest, TimerSource}; use script_traits::{TouchEventType, TouchId}; use std::borrow::ToOwned; @@ -347,9 +347,6 @@ pub struct ScriptThread { /// For communicating load url messages to the constellation constellation_chan: IpcSender<ConstellationMsg>, - /// For communicating layout messages to the constellation - layout_to_constellation_chan: IpcSender<LayoutMsg>, - /// The port on which we receive messages from the image cache image_cache_port: Receiver<ImageCacheResult>, @@ -572,7 +569,6 @@ impl ScriptThread { control_chan: state.control_chan, control_port: control_port, constellation_chan: state.constellation_chan, - layout_to_constellation_chan: state.layout_to_constellation_chan, time_profiler_chan: state.time_profiler_chan, mem_profiler_chan: state.mem_profiler_chan, panic_chan: state.panic_chan, @@ -1089,6 +1085,7 @@ impl ScriptThread { paint_chan, panic_chan, pipeline_port, + layout_to_constellation_chan, layout_shutdown_chan, content_process_shutdown_chan, } = new_layout_info; @@ -1102,7 +1099,7 @@ impl ScriptThread { is_parent: false, layout_pair: layout_pair, pipeline_port: pipeline_port, - constellation_chan: self.layout_to_constellation_chan.clone(), + constellation_chan: layout_to_constellation_chan, panic_chan: panic_chan, paint_chan: paint_chan, script_chan: self.control_chan.clone(), |