diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-11-21 09:14:59 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-11-21 09:15:02 +1000 |
commit | 898c1ecc8fb885e1ed90d148cfadbb30d337ea49 (patch) | |
tree | 28808b5beeb5a1b54d1a164fe99e30bff496b643 /components/compositing/compositor.rs | |
parent | 133b523d2b3a95796e66e77fe6962abf79c3a4c7 (diff) | |
download | servo-898c1ecc8fb885e1ed90d148cfadbb30d337ea49.tar.gz servo-898c1ecc8fb885e1ed90d148cfadbb30d337ea49.zip |
Remove unused exit after load option.
This simplifies some upcoming changes to how event handling works.
Diffstat (limited to 'components/compositing/compositor.rs')
-rw-r--r-- | components/compositing/compositor.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index e089c0e03b2..486e94bba07 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -14,7 +14,7 @@ use constellation::{SendableFrameTree, FrameTreeDiff}; use pipeline::CompositionPipeline; use scrolling::ScrollingTimerProxy; use windowing; -use windowing::{FinishedWindowEvent, IdleWindowEvent, LoadUrlWindowEvent, MouseWindowClickEvent}; +use windowing::{IdleWindowEvent, LoadUrlWindowEvent, MouseWindowClickEvent}; use windowing::{MouseWindowEvent, MouseWindowEventClass, MouseWindowMouseDownEvent}; use windowing::{MouseWindowMouseUpEvent, MouseWindowMoveEventClass, NavigationWindowEvent}; use windowing::{QuitWindowEvent, RefreshWindowEvent, ResizeWindowEvent, ScrollWindowEvent}; @@ -668,16 +668,6 @@ impl<Window: WindowMethods> IOCompositor<Window> { self.on_key_event(key, state, modifiers); } - FinishedWindowEvent => { - let exit = opts::get().exit_after_load; - if exit { - debug!("shutting down the constellation for FinishedWindowEvent"); - let ConstellationChan(ref chan) = self.constellation_chan; - chan.send(ExitMsg); - self.shutdown_state = ShuttingDown; - } - } - QuitWindowEvent => { debug!("shutting down the constellation for QuitWindowEvent"); let ConstellationChan(ref chan) = self.constellation_chan; @@ -1053,13 +1043,6 @@ impl<Window: WindowMethods> IOCompositor<Window> { self.last_composite_time = precise_time_ns(); - let exit = opts::get().exit_after_load; - if exit { - debug!("shutting down the constellation for exit_after_load"); - let ConstellationChan(ref chan) = self.constellation_chan; - chan.send(ExitMsg); - } - self.composition_request = NoCompositingNecessary; self.process_pending_scroll_events(); } |