Remove Window::handle_reflow_complete_msg and ScriptTask::handle_reflow_complete_msg.

Code on the script thread can only observe self.layout_join_port being Some()
between the time it is set in force_reflow, and the join_layout call later in
that function, and no significant code is called in that code.

Since these functions do nothing useful if layout_join_port is None, there is
no point in keeping them.
This commit is contained in:
Ms2ger 2015-10-22 15:59:52 +02:00
parent 7cd3870977
commit 2456ddf4ba
2 changed files with 2 additions and 24 deletions

View file

@ -1046,13 +1046,6 @@ impl Window {
(element, response.rect)
}
pub fn handle_reflow_complete_msg(&self, reflow_id: u32) {
let last_reflow_id = self.last_reflow_id.get();
if last_reflow_id == reflow_id {
*self.layout_join_port.borrow_mut() = None;
}
}
pub fn init_browsing_context(&self, doc: &Document, frame_element: Option<&Element>) {
let mut browsing_context = self.browsing_context.borrow_mut();
*browsing_context = Some(BrowsingContext::new(doc, frame_element));