diff options
author | bors-servo <release+servo@mozilla.com> | 2013-10-31 16:34:14 -0700 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-10-31 16:34:14 -0700 |
commit | 352acbb8335fcf78f2d62dc781fa9d86b9368f9c (patch) | |
tree | c27c2d41cbffc19415b4d183367568ff1682b688 /src/components/main/layout/float.rs | |
parent | 041f3a8b06e3f29e99464af752cad8f1a7e93540 (diff) | |
parent | aaf96b600363ec6d2a4d23cf318b47d9bbb743b5 (diff) | |
download | servo-352acbb8335fcf78f2d62dc781fa9d86b9368f9c.tar.gz servo-352acbb8335fcf78f2d62dc781fa9d86b9368f9c.zip |
auto merge of #1163 : metajack/servo/kmc-rust-upgrade, r=kmcallister
Most work courtesy of @kmcallister.
I already reviewed Keegan's work, so just the last two commits need attention.
Diffstat (limited to 'src/components/main/layout/float.rs')
-rw-r--r-- | src/components/main/layout/float.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/main/layout/float.rs b/src/components/main/layout/float.rs index 8aee9e4837a..47f6dd12f9b 100644 --- a/src/components/main/layout/float.rs +++ b/src/components/main/layout/float.rs @@ -137,7 +137,7 @@ impl FlowContext for FloatFlow { } fn assign_widths(&mut self, _: &mut LayoutContext) { - debug!("assign_widths_float: assigning width for flow %?", self.base.id); + debug!("assign_widths_float: assigning width for flow {}", self.base.id); // position.size.width is set by parent even though we don't know // position.origin yet. let mut remaining_width = self.base.position.size.width; @@ -174,7 +174,7 @@ impl FlowContext for FloatFlow { let width = MaybeAuto::from_style(style.Box.width, remaining_width).specified_or_default(shrink_to_fit); - debug!("assign_widths_float -- width: %?", width); + debug!("assign_widths_float -- width: {}", width); model.margin.top = margin_top; model.margin.right = margin_right; @@ -210,7 +210,7 @@ impl FlowContext for FloatFlow { } fn assign_height_inorder(&mut self, _: &mut LayoutContext) { - debug!("assign_height_inorder_float: assigning height for float %?", self.base.id); + debug!("assign_height_inorder_float: assigning height for float {}", self.base.id); // assign_height_float was already called by the traversal function // so this is well-defined @@ -250,7 +250,7 @@ impl FlowContext for FloatFlow { } fn assign_height(&mut self, ctx: &mut LayoutContext) { - debug!("assign_height_float: assigning height for float %?", self.base.id); + debug!("assign_height_float: assigning height for float {}", self.base.id); let has_inorder_children = self.base.num_floats > 0; if has_inorder_children { let mut float_ctx = FloatContext::new(self.floated_children); @@ -298,7 +298,7 @@ impl FlowContext for FloatFlow { Au::new(0)).specified_or_zero(); height = geometry::max(height, height_prop) + noncontent_height; - debug!("assign_height_float -- height: %?", height); + debug!("assign_height_float -- height: {}", height); position.size.height = height; } |