aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 848f6b0d72f..57aeada88a5 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -174,10 +174,6 @@ pub struct Window {
scheduler_chan: IpcSender<TimerEventRequest>,
timers: OneshotTimers,
- /// For sending messages to the memory profiler.
- #[ignore_heap_size_of = "channels are hard"]
- time_profiler_chan: ProfilerChan,
-
/// For sending timeline markers. Will be ignored if
/// no devtools server
devtools_markers: DOMRefCell<HashSet<TimelineMarkerType>>,
@@ -1376,10 +1372,6 @@ impl Window {
&self.resource_threads
}
- pub fn time_profiler_chan(&self) -> &ProfilerChan {
- &self.time_profiler_chan
- }
-
pub fn layout_chan(&self) -> &Sender<Msg> {
&self.layout_chan
}
@@ -1593,7 +1585,8 @@ impl Window {
};
let current_time = time::get_time();
let win = box Window {
- globalscope: GlobalScope::new_inherited(devtools_chan, mem_profiler_chan),
+ globalscope:
+ GlobalScope::new_inherited(devtools_chan, mem_profiler_chan, time_profiler_chan),
script_chan: script_chan,
dom_manipulation_task_source: dom_task_source,
user_interaction_task_source: user_task_source,
@@ -1603,7 +1596,6 @@ impl Window {
image_cache_chan: image_cache_chan,
navigator: Default::default(),
image_cache_thread: image_cache_thread,
- time_profiler_chan: time_profiler_chan,
history: Default::default(),
browsing_context: Default::default(),
performance: Default::default(),