diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-10-23 14:44:17 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-10-24 16:27:37 -0700 |
commit | 6ec0939a2248e0e092242076ed5b2cd2486c736c (patch) | |
tree | cd945ad95c170c95a99ca96259c7d20bf2b35424 /components/script/script_task.rs | |
parent | 0162214b1fce3787bb08118790fc4d59d8528306 (diff) | |
download | servo-6ec0939a2248e0e092242076ed5b2cd2486c736c.tar.gz servo-6ec0939a2248e0e092242076ed5b2cd2486c736c.zip |
Dynamically check DOMRefCell access from layout in debug builds
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index f07fff94983..398e9b8d4db 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -54,6 +54,7 @@ use servo_net::resource_task::ResourceTask; use servo_util::geometry::to_frac_px; use servo_util::smallvec::{SmallVec1, SmallVec}; use servo_util::task::spawn_named_with_send_on_failure; +use servo_util::task_state; use geom::point::Point2D; use js::jsapi::{JS_SetWrapObjectCallbacks, JS_SetGCZeal, JS_DEFAULT_ZEAL_FREQ, JS_GC}; @@ -262,7 +263,7 @@ impl ScriptTaskFactory for ScriptTask { let ConstellationChan(const_chan) = constellation_chan.clone(); let (script_chan, script_port) = channel(); let layout_chan = LayoutChan(layout_chan.sender()); - spawn_named_with_send_on_failure("ScriptTask", proc() { + spawn_named_with_send_on_failure("ScriptTask", task_state::Script, proc() { let script_task = ScriptTask::new(id, compositor as Box<ScriptListener>, layout_chan, |