mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove no-op got_load_complete_message compositor property.
This commit is contained in:
parent
9e89b0a229
commit
fbb59f925a
1 changed files with 0 additions and 9 deletions
|
@ -157,11 +157,6 @@ pub struct IOCompositor<Window: WindowMethods> {
|
||||||
/// The time of the last zoom action has started.
|
/// The time of the last zoom action has started.
|
||||||
zoom_time: f64,
|
zoom_time: f64,
|
||||||
|
|
||||||
/// Whether the page being rendered has loaded completely.
|
|
||||||
/// Differs from ReadyState because we can finish loading (ready)
|
|
||||||
/// many times for a single page.
|
|
||||||
got_load_complete_message: bool,
|
|
||||||
|
|
||||||
/// The current frame tree ID (used to reject old paint buffers)
|
/// The current frame tree ID (used to reject old paint buffers)
|
||||||
frame_tree_id: FrameTreeId,
|
frame_tree_id: FrameTreeId,
|
||||||
|
|
||||||
|
@ -385,7 +380,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
max_viewport_zoom: None,
|
max_viewport_zoom: None,
|
||||||
zoom_action: false,
|
zoom_action: false,
|
||||||
zoom_time: 0f64,
|
zoom_time: 0f64,
|
||||||
got_load_complete_message: false,
|
|
||||||
frame_tree_id: FrameTreeId(0),
|
frame_tree_id: FrameTreeId(0),
|
||||||
constellation_chan: state.constellation_chan,
|
constellation_chan: state.constellation_chan,
|
||||||
time_profiler_chan: state.time_profiler_chan,
|
time_profiler_chan: state.time_profiler_chan,
|
||||||
|
@ -516,8 +510,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
}
|
}
|
||||||
|
|
||||||
(Msg::LoadComplete, ShutdownState::NotShuttingDown) => {
|
(Msg::LoadComplete, ShutdownState::NotShuttingDown) => {
|
||||||
self.got_load_complete_message = true;
|
|
||||||
|
|
||||||
// If we're painting in headless mode, schedule a recomposite.
|
// If we're painting in headless mode, schedule a recomposite.
|
||||||
if opts::get().output_file.is_some() || opts::get().exit_after_load {
|
if opts::get().output_file.is_some() || opts::get().exit_after_load {
|
||||||
self.composite_if_necessary(CompositingReason::Headless);
|
self.composite_if_necessary(CompositingReason::Headless);
|
||||||
|
@ -901,7 +893,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
|
|
||||||
fn on_load_url_window_event(&mut self, url_string: String) {
|
fn on_load_url_window_event(&mut self, url_string: String) {
|
||||||
debug!("osmain: loading URL `{}`", url_string);
|
debug!("osmain: loading URL `{}`", url_string);
|
||||||
self.got_load_complete_message = false;
|
|
||||||
match ServoUrl::parse(&url_string) {
|
match ServoUrl::parse(&url_string) {
|
||||||
Ok(url) => {
|
Ok(url) => {
|
||||||
let msg = match self.root_pipeline {
|
let msg = match self.root_pipeline {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue