Skip to content

Commit

Permalink
Remove unused FrameChange's document_ready field
Browse files Browse the repository at this point in the history
  • Loading branch information
zaynetro committed Dec 25, 2016
1 parent b5909f2 commit cb5ceec
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions components/constellation/constellation.rs
Expand Up @@ -412,10 +412,6 @@ struct FrameChange {
/// The pipeline for the document being loaded.
new_pipeline_id: PipelineId,

/// Is this document ready to be activated?
/// TODO: this flag is never set, it can be removed.
document_ready: bool,

/// Is the new document replacing the current document (e.g. a reload)
/// or pushing it into the session history (e.g. a navigation)?
replace: bool,
Expand Down Expand Up @@ -1446,7 +1442,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
frame_id: top_level_frame_id,
old_pipeline_id: pipeline_id,
new_pipeline_id: new_pipeline_id,
document_ready: false,
replace: false,
});
}
Expand Down Expand Up @@ -1480,7 +1475,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
frame_id: self.root_frame_id,
old_pipeline_id: None,
new_pipeline_id: root_pipeline_id,
document_ready: false,
replace: false,
});
self.compositor_proxy.send(ToCompositorMsg::ChangePageUrl(root_pipeline_id, url));
Expand Down Expand Up @@ -1585,7 +1579,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
frame_id: load_info.info.frame_id,
old_pipeline_id: load_info.old_pipeline_id,
new_pipeline_id: load_info.info.new_pipeline_id,
document_ready: false,
replace: load_info.info.replace,
});
}
Expand Down Expand Up @@ -1630,7 +1623,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
frame_id: frame_id,
old_pipeline_id: None,
new_pipeline_id: new_pipeline_id,
document_ready: false,
replace: replace,
});
}
Expand Down Expand Up @@ -1766,7 +1758,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
frame_id: root_frame_id,
old_pipeline_id: Some(source_id),
new_pipeline_id: new_pipeline_id,
document_ready: false,
replace: replace,
});

Expand Down Expand Up @@ -1937,7 +1928,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
.map(|id| (id, true));
let pipeline_id_loaded = self.pending_frames.iter().rev()
.find(|x| x.old_pipeline_id == current_pipeline_id)
.map(|x| (x.new_pipeline_id, x.document_ready))
.map(|x| (x.new_pipeline_id, false))
.or(current_pipeline_id_loaded);
if let Err(e) = resp_chan.send(pipeline_id_loaded) {
warn!("Failed get_pipeline response ({}).", e);
Expand Down

0 comments on commit cb5ceec

Please sign in to comment.