From aeed0ce3b6353573115b3a918b6a1bbe30cb26b3 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 15 May 2014 16:04:53 -0700 Subject: [PATCH] Remove unnecessary 'pub's from IOCompositor --- src/components/main/compositing/compositor.rs | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/components/main/compositing/compositor.rs b/src/components/main/compositing/compositor.rs index e328a5201f9..3599c98f7e5 100644 --- a/src/components/main/compositing/compositor.rs +++ b/src/components/main/compositing/compositor.rs @@ -43,76 +43,76 @@ use time::precise_time_s; pub struct IOCompositor { /// The application window. - pub window: Rc, + window: Rc, /// The port on which we receive messages. - pub port: Receiver, + port: Receiver, /// The render context. - pub context: RenderContext, + context: RenderContext, /// The root ContainerLayer. - pub root_layer: Rc, + root_layer: Rc, /// The root pipeline. - pub root_pipeline: Option, + root_pipeline: Option, /// The canvas to paint a page. - pub scene: Scene, + scene: Scene, /// The application window size. - pub window_size: Size2D, + window_size: Size2D, /// The platform-specific graphics context. - pub graphics_context: NativeCompositingGraphicsContext, + graphics_context: NativeCompositingGraphicsContext, /// Tracks whether the renderer has finished its first rendering - pub composite_ready: bool, + composite_ready: bool, /// Tracks whether we are in the process of shutting down. - pub shutting_down: bool, + shutting_down: bool, /// Tracks whether we should close compositor. - pub done: bool, + done: bool, /// Tracks whether we need to re-composite a page. - pub recomposite: bool, + recomposite: bool, /// Keeps track of the current zoom factor. - pub world_zoom: f32, + world_zoom: f32, /// Tracks whether the zoom action has happend recently. - pub zoom_action: bool, + zoom_action: bool, /// The time of the last zoom action has started. - pub zoom_time: f64, + zoom_time: f64, /// Current display/reflow status of the page - pub ready_state: ReadyState, + ready_state: ReadyState, /// Whether the page being rendered has loaded completely. /// Differs from ReadyState because we can finish loading (ready) /// many times for a single page. - pub load_complete: bool, + load_complete: bool, /// The command line option flags. - pub opts: Opts, + opts: Opts, /// The root CompositorLayer - pub compositor_layer: Option, + compositor_layer: Option, /// The channel on which messages can be sent to the constellation. - pub constellation_chan: ConstellationChan, + constellation_chan: ConstellationChan, /// The channel on which messages can be sent to the profiler. - pub profiler_chan: ProfilerChan, + profiler_chan: ProfilerChan, /// Pending scroll to fragment event, if any - pub fragment_point: Option> + fragment_point: Option> } impl IOCompositor { - pub fn new(app: &Application, + fn new(app: &Application, opts: Opts, port: Receiver, constellation_chan: ConstellationChan,