diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 06442d3042a..8347113791e 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -123,6 +123,7 @@ use net_traits::{ Metadata, NetworkError, ReferrerPolicy, ResourceFetchTiming, ResourceThreads, ResourceTimingType, }; +use percent_encoding::percent_decode; use profile_traits::mem::{self as profile_mem, OpaqueSender, ReportsChan}; use profile_traits::time::{self as profile_time, profile, ProfilerCategory}; use script_layout_interface::message::{self, LayoutThreadInit, Msg, ReflowGoal}; @@ -160,7 +161,6 @@ use std::time::{Duration, SystemTime}; use style::dom::OpaqueNode; use style::thread_state::{self, ThreadState}; use time::{at_utc, get_time, precise_time_ns, Timespec}; -use url::percent_encoding::percent_decode; use url::Position; use webrender_api::units::LayoutPixel; use webrender_api::{DocumentId, RenderApiSender}; @@ -612,7 +612,7 @@ pub struct ScriptThread { timer_event_chan: Sender<TimerEvent>, timer_event_port: Receiver<TimerEvent>, - content_process_shutdown_chan: IpcSender<()>, + content_process_shutdown_chan: Sender<()>, /// <https://html.spec.whatwg.org/multipage/#microtask-queue> microtask_queue: Rc<MicrotaskQueue>, @@ -2276,7 +2276,6 @@ impl ScriptThread { load_data, window_size, pipeline_port, - content_process_shutdown_chan, } = new_layout_info; let layout_pair = unbounded(); @@ -2294,7 +2293,6 @@ impl ScriptThread { constellation_chan: self.layout_to_constellation_chan.clone(), script_chan: self.control_chan.clone(), image_cache: self.image_cache.clone(), - content_process_shutdown_chan: content_process_shutdown_chan, paint_time_metrics: PaintTimeMetrics::new( new_pipeline_id, self.time_profiler_chan.clone(), |