aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/layout/block.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-09-20 15:04:00 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-09-20 15:04:00 -0700
commitff6cefb798246cd82d603b7bce89280812affe3c (patch)
tree434554e74fa510033457ba82cef3118553aaf7ca /src/servo/layout/block.rs
parentf3a8253bc8728e67f88334ef0c7d4b0590557d28 (diff)
downloadservo-ff6cefb798246cd82d603b7bce89280812affe3c.tar.gz
servo-ff6cefb798246cd82d603b7bce89280812affe3c.zip
Update for language changes
Diffstat (limited to 'src/servo/layout/block.rs')
-rw-r--r--src/servo/layout/block.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servo/layout/block.rs b/src/servo/layout/block.rs
index 38203596b68..76ea82f1749 100644
--- a/src/servo/layout/block.rs
+++ b/src/servo/layout/block.rs
@@ -94,8 +94,8 @@ impl @FlowContext : BlockLayout {
/* if not an anonymous block context, add in block box's widths.
these widths will not include child elements, just padding etc. */
do self.with_block_box |box| {
- min_width += box.get_min_width();
- pref_width += box.get_pref_width();
+ min_width = min_width.add(box.get_min_width());
+ pref_width = pref_width.add(box.get_pref_width());
}
self.data.min_width = min_width;
@@ -121,7 +121,7 @@ impl @FlowContext : BlockLayout {
do self.with_block_box |box| {
box.data.position.size.width = remaining_width;
let (left_used, right_used) = box.get_used_width();
- remaining_width -= (left_used + right_used);
+ remaining_width = remaining_width.sub(left_used.add(right_used));
}
for FlowTree.each_child(self) |child_ctx| {
@@ -138,7 +138,7 @@ impl @FlowContext : BlockLayout {
for FlowTree.each_child(self) |child_ctx| {
child_ctx.data.position.origin.y = cur_y;
- cur_y += child_ctx.data.position.size.height;
+ cur_y = cur_y.add(child_ctx.data.position.size.height);
}
self.data.position.size.height = cur_y;