diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-12-06 18:31:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 18:31:46 -0800 |
commit | 32c121b6ff4a3f9336e742ecf1a96b187986fde0 (patch) | |
tree | 678963322c292d39a286a78f299def638d6c2c17 /components/script/script_runtime.rs | |
parent | b54cfc9f259e72ea26e68ec8a7b1d617cf0812d3 (diff) | |
parent | 535765907d667466636e0fcaa9a7c6a078cf397d (diff) | |
download | servo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.tar.gz servo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.zip |
Auto merge of #14473 - nox:raf-safety, r=Ms2ger
Clean up JSTraceable and how we use it
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14473)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 154353c71e8..f65b145c4ec 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -10,7 +10,7 @@ use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::PromiseBinding::PromiseJobCallback; use dom::bindings::js::{Root, RootCollection, RootCollectionPtr, trace_roots}; use dom::bindings::refcounted::{LiveDOMReferences, trace_refcounted_objects}; -use dom::bindings::trace::trace_traceables; +use dom::bindings::trace::{JSTraceable, trace_traceables}; use dom::bindings::utils::DOM_CALLBACKS; use dom::globalscope::GlobalScope; use js::glue::CollectServoSizes; @@ -48,7 +48,7 @@ pub enum CommonScriptMsg { } /// A cloneable interface for communicating with an event loop. -pub trait ScriptChan { +pub trait ScriptChan: JSTraceable { /// Send a message to the associated event loop. fn send(&self, msg: CommonScriptMsg) -> Result<(), ()>; /// Clone this handle. |