mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix formatting issues.
This commit is contained in:
parent
d6231a18ef
commit
08b3902bbb
2 changed files with 10 additions and 9 deletions
|
@ -486,14 +486,15 @@ impl CompositorLayer {
|
||||||
} else {
|
} else {
|
||||||
// ID does not match ours, so recurse on descendents (including hidden children).
|
// ID does not match ours, so recurse on descendents (including hidden children).
|
||||||
self.children.mut_iter().map(|x| &mut x.child)
|
self.children.mut_iter().map(|x| &mut x.child)
|
||||||
.any(|x| { let buffers = cell.take();
|
.any(|x| {
|
||||||
let result = x.add_buffers(pipeline_id, buffers.clone(), epoch);
|
let buffers = cell.take();
|
||||||
if result {
|
let result = x.add_buffers(pipeline_id, buffers.clone(), epoch);
|
||||||
result
|
if result {
|
||||||
} else {
|
result
|
||||||
cell.put_back(buffers);
|
} else {
|
||||||
result
|
cell.put_back(buffers);
|
||||||
}})
|
result
|
||||||
|
}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ impl Pipeline {
|
||||||
|
|
||||||
/// This function wraps the task creation within a supervised task
|
/// This function wraps the task creation within a supervised task
|
||||||
/// so that failure will only tear down those tasks instead of ours.
|
/// so that failure will only tear down those tasks instead of ours.
|
||||||
pub fn spawn(chan:Chan<task::TaskResult>, f:~fn()) {
|
pub fn spawn(chan: Chan<task::TaskResult>, f: ~fn()) {
|
||||||
let mut task = task::task();
|
let mut task = task::task();
|
||||||
task.opts.notify_chan = Some(chan);
|
task.opts.notify_chan = Some(chan);
|
||||||
task.supervised();
|
task.supervised();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue