diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 505676e126b..e99768b28d4 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -1281,11 +1281,7 @@ impl LayoutTask { } // Tell script that we're done. - // - // 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(); - data.script_chan.send(ConstellationControlMsg::ReflowComplete(self.id, data.id)).unwrap(); } fn set_visible_rects<'a>(&'a self, diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 98431ab1330..8216cbfbacf 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -935,8 +935,6 @@ impl ScriptTask { self.handle_navigate(pipeline_id, Some(subpage_id), load_data), ConstellationControlMsg::SendEvent(id, event) => self.handle_event(id, event), - ConstellationControlMsg::ReflowComplete(_id, _reflow_id) => - (), ConstellationControlMsg::ResizeInactive(id, new_size) => self.handle_resize_inactive_msg(id, new_size), ConstellationControlMsg::Viewport(..) => diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 3c04fa36dda..6ed68b92dce 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -118,8 +118,6 @@ pub enum ConstellationControlMsg { ExitPipeline(PipelineId, PipelineExitType), /// Sends a DOM event. SendEvent(PipelineId, CompositorEvent), - /// Notifies script that reflow is finished. - ReflowComplete(PipelineId, u32), /// Notifies script of the viewport. Viewport(PipelineId, Rect), /// Requests that the script task immediately send the constellation the title of a pipeline.