mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use mutable fields to fix breakage
This commit is contained in:
parent
db711b6f1c
commit
782c22c35c
1 changed files with 3 additions and 3 deletions
|
@ -78,13 +78,13 @@ fn reflow_block(root: box, available_width: au) {
|
||||||
for tree::each_child(root) {|c|
|
for tree::each_child(root) {|c|
|
||||||
let mut blk_available_width = available_width;
|
let mut blk_available_width = available_width;
|
||||||
// FIXME subtract borders, margins, etc
|
// FIXME subtract borders, margins, etc
|
||||||
c.bounds.origin = {x: au(0), y: au(current_height)};
|
c.bounds.origin = {mut x: au(0), mut y: au(current_height)};
|
||||||
reflow_block(c, blk_available_width);
|
reflow_block(c, blk_available_width);
|
||||||
current_height += *c.bounds.size.height;
|
current_height += *c.bounds.size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
root.bounds.size = {width: available_width, // FIXME
|
root.bounds.size = {mut width: available_width, // FIXME
|
||||||
height: au(current_height)};
|
mut height: au(current_height)};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue