mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Cleanup join_layout a little bit.
This commit is contained in:
parent
b351b216c6
commit
79914e560f
1 changed files with 14 additions and 16 deletions
|
@ -327,7 +327,6 @@ impl Page {
|
||||||
/// layout task has finished any pending request messages.
|
/// layout task has finished any pending request messages.
|
||||||
fn join_layout(&self) {
|
fn join_layout(&self) {
|
||||||
let mut layout_join_port = self.layout_join_port.borrow_mut();
|
let mut layout_join_port = self.layout_join_port.borrow_mut();
|
||||||
if layout_join_port.is_some() {
|
|
||||||
let join_port = replace(&mut *layout_join_port, None);
|
let join_port = replace(&mut *layout_join_port, None);
|
||||||
match join_port {
|
match join_port {
|
||||||
Some(ref join_port) => {
|
Some(ref join_port) => {
|
||||||
|
@ -344,8 +343,7 @@ impl Page {
|
||||||
|
|
||||||
debug!("script: layout joined")
|
debug!("script: layout joined")
|
||||||
}
|
}
|
||||||
None => panic!("reader forked but no join port?"),
|
None => (),
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue