aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-02-22 16:10:32 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-02-23 01:45:52 +0530
commita05553f188cb43cb9aa04440795447253261d5b5 (patch)
treec595602986014bd27a4830052376ed760e45771e /components/script_traits/lib.rs
parentada95b98786fd4bdaefdcf3be7626a85314a7b3a (diff)
downloadservo-a05553f188cb43cb9aa04440795447253261d5b5.tar.gz
servo-a05553f188cb43cb9aa04440795447253261d5b5.zip
Make Background Hang Monitor Optional
This is done by wrapping all channels of communication and related objects inside Option which are configured using flag inside servo_config.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 7f6ecece10b..d928335f8e3 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -644,7 +644,7 @@ pub struct InitialScriptState {
/// A channel on which messages can be sent to the constellation from script.
pub script_to_constellation_chan: ScriptToConstellationChan,
/// A handle to register script-(and associated layout-)threads for hang monitoring.
- pub background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>,
+ pub background_hang_monitor_register: Option<Box<dyn BackgroundHangMonitorRegister>>,
/// A sender for the layout thread to communicate to the constellation.
pub layout_to_constellation_chan: IpcSender<LayoutMsg>,
/// A channel to schedule timer events.