From 356e4dee211586246335ab39b8d5bf26261f315c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 12 Oct 2012 14:58:01 -0700 Subject: [PATCH] layout: Only serialize boxes in debug mode --- src/servo/layout/box_builder.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/servo/layout/box_builder.rs b/src/servo/layout/box_builder.rs index 949ae903236..dca7c7c4130 100644 --- a/src/servo/layout/box_builder.rs +++ b/src/servo/layout/box_builder.rs @@ -44,8 +44,7 @@ impl LayoutTreeBuilder { fn construct_recursively(layout_ctx: &LayoutContext, cur_node: Node, parent_ctx: &BuilderContext) { let style = cur_node.style(); // DEBUG - let n_str = fmt!("%?", cur_node.read(|n| copy n.kind )); - debug!("Considering node: %?", n_str); + debug!("Considering node: %?", fmt!("%?", cur_node.read(|n| copy n.kind ))); // TODO: remove this once UA styles work // TODO: handle interactions with 'float', 'position' (CSS 2.1, Section 9.7) @@ -261,4 +260,4 @@ impl LayoutTreeBuilder { } } } -} \ No newline at end of file +}