mirror of
https://github.com/servo/servo.git
synced 2025-07-26 00:30:22 +01:00
auto merge of #4911 : Ms2ger/servo/join_layout, r=jdm
This commit is contained in:
commit
c5a4e78302
1 changed files with 11 additions and 17 deletions
|
@ -327,10 +327,7 @@ impl Page {
|
|||
/// layout task has finished any pending request messages.
|
||||
fn join_layout(&self) {
|
||||
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);
|
||||
match join_port {
|
||||
Some(ref join_port) => {
|
||||
if let Some(join_port) = replace(&mut *layout_join_port, None) {
|
||||
match join_port.try_recv() {
|
||||
Err(Empty) => {
|
||||
info!("script: waiting on layout");
|
||||
|
@ -344,9 +341,6 @@ impl Page {
|
|||
|
||||
debug!("script: layout joined")
|
||||
}
|
||||
None => panic!("reader forked but no join port?"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Reflows the page if it's possible to do so and the page is dirty. This method will wait
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue