From 75a09122a2bd83b8d717f4c4a9a66d2a8f642e15 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 10 Apr 2012 16:00:20 -0700 Subject: [PATCH] servo: Use mutable fields to fix breakage Source-Repo: https://github.com/servo/servo Source-Revision: 782c22c35c3642e0ba1a2831901d7e8ed8b239ea --- servo/src/servo/layout/base.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servo/src/servo/layout/base.rs b/servo/src/servo/layout/base.rs index 0ea07d0f7213..ca3202095eed 100644 --- a/servo/src/servo/layout/base.rs +++ b/servo/src/servo/layout/base.rs @@ -78,13 +78,13 @@ fn reflow_block(root: box, available_width: au) { for tree::each_child(root) {|c| let mut blk_available_width = available_width; // 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); current_height += *c.bounds.size.height; } - root.bounds.size = {width: available_width, // FIXME - height: au(current_height)}; + root.bounds.size = {mut width: available_width, // FIXME + mut height: au(current_height)}; } #[cfg(test)]