diff --git a/servo/components/compositing/compositor.rs b/servo/components/compositing/compositor.rs index f6f1a02fcc5b..94c806414db6 100644 --- a/servo/components/compositing/compositor.rs +++ b/servo/components/compositing/compositor.rs @@ -10,7 +10,7 @@ use euclid::{Point2D, TypedPoint2D, TypedVector2D, TypedRect, ScaleFactor, Typed use gfx_traits::Epoch; use gleam::gl; use image::{DynamicImage, ImageFormat, RgbImage}; -use ipc_channel::ipc::{self, IpcSender, IpcSharedMemory}; +use ipc_channel::ipc::{self, IpcSharedMemory}; use msg::constellation_msg::{Key, KeyModifiers, KeyState, CONTROL}; use msg::constellation_msg::{PipelineId, PipelineIndex, PipelineNamespaceId, TraversalDirection}; use net_traits::image::base::{Image, PixelFormat}; @@ -459,9 +459,9 @@ impl IOCompositor { self.change_page_title(pipeline_id, title); } - (Msg::SetFrameTree(frame_tree, response_chan), + (Msg::SetFrameTree(frame_tree), ShutdownState::NotShuttingDown) => { - self.set_frame_tree(&frame_tree, response_chan); + self.set_frame_tree(&frame_tree); self.send_viewport_rects(); self.title_for_main_frame(); } @@ -673,13 +673,8 @@ impl IOCompositor { } } - fn set_frame_tree(&mut self, - frame_tree: &SendableFrameTree, - response_chan: IpcSender<()>) { + fn set_frame_tree(&mut self, frame_tree: &SendableFrameTree) { debug!("Setting the frame tree for pipeline {}", frame_tree.pipeline.id); - if let Err(e) = response_chan.send(()) { - warn!("Sending reponse to set frame tree failed ({}).", e); - } self.root_pipeline = Some(frame_tree.pipeline.clone()); diff --git a/servo/components/compositing/compositor_thread.rs b/servo/components/compositing/compositor_thread.rs index 4081d420369b..7bf54e3ad6a3 100644 --- a/servo/components/compositing/compositor_thread.rs +++ b/servo/components/compositing/compositor_thread.rs @@ -91,7 +91,7 @@ pub enum Msg { /// Alerts the compositor that the given pipeline has changed whether it is running animations. ChangeRunningAnimationsState(PipelineId, AnimationState), /// Replaces the current frame tree, typically called during main frame navigation. - SetFrameTree(SendableFrameTree, IpcSender<()>), + SetFrameTree(SendableFrameTree), /// The load of a page has begun LoadStart, /// The load of a page has completed diff --git a/servo/components/constellation/constellation.rs b/servo/components/constellation/constellation.rs index aa5de0c95dee..17912603e015 100644 --- a/servo/components/constellation/constellation.rs +++ b/servo/components/constellation/constellation.rs @@ -2870,13 +2870,7 @@ impl Constellation // with low-resource scenarios. debug!("Sending frame tree for browsing context {}.", browsing_context_id); if let Some(frame_tree) = self.browsing_context_to_sendable(browsing_context_id) { - let (chan, port) = ipc::channel().expect("Failed to create IPC channel!"); - self.compositor_proxy.send(ToCompositorMsg::SetFrameTree(frame_tree, - chan)); - if port.recv().is_err() { - warn!("Compositor has discarded SetFrameTree"); - return; // Our message has been discarded, probably shutting down. - } + self.compositor_proxy.send(ToCompositorMsg::SetFrameTree(frame_tree)); } }