Store a Sender<ConstellationControlMsg> in ScriptReflow.

This commit is contained in:
Ms2ger 2015-08-12 15:42:37 +02:00
parent 41ac66112a
commit 4f9ec8915d
3 changed files with 5 additions and 6 deletions

View file

@ -1197,8 +1197,7 @@ impl LayoutTask {
// FIXME(pcwalton): This should probably be *one* channel, but we can't fix this without
// either select or a filtered recv() that only looks for messages of a given type.
data.script_join_chan.send(()).unwrap();
let ScriptControlChan(ref chan) = data.script_chan;
chan.send(ConstellationControlMsg::ReflowComplete(self.id, data.id)).unwrap();
data.script_chan.send(ConstellationControlMsg::ReflowComplete(self.id, data.id)).unwrap();
}
fn set_visible_rects<'a>(&'a self,