aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-12-06 10:31:52 -1000
committerAnthony Ramine <n.oxyde@gmail.com>2016-12-06 13:15:14 -1000
commitb40681e2312a2c3fd3c34f0f70760c768dda0753 (patch)
tree23a670e38302651de73b0b25b917b4906f0066e7 /components/script/dom/window.rs
parente8c9c12b6ef39e66173bd5c5f4b88e7e22b97edb (diff)
downloadservo-b40681e2312a2c3fd3c34f0f70760c768dda0753.tar.gz
servo-b40681e2312a2c3fd3c34f0f70760c768dda0753.zip
Make the impl of JSTraceable for LayoutRPC sound with a Send bound
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 4b4b74b846e..51436a3c793 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -196,7 +196,7 @@ pub struct Window {
/// A handle to perform RPC calls into the layout, quickly.
#[ignore_heap_size_of = "trait objects are hard"]
- layout_rpc: Box<LayoutRPC + 'static>,
+ layout_rpc: Box<LayoutRPC + Send + 'static>,
/// The current size of the window, in pixels.
window_size: Cell<Option<WindowSizeData>>,
@@ -1538,7 +1538,7 @@ impl Window {
parent_info: Option<(PipelineId, FrameType)>,
window_size: Option<WindowSizeData>)
-> Root<Window> {
- let layout_rpc: Box<LayoutRPC> = {
+ let layout_rpc: Box<LayoutRPC + Send> = {
let (rpc_send, rpc_recv) = channel();
layout_chan.send(Msg::GetRPC(rpc_send)).unwrap();
rpc_recv.recv().unwrap()