From c4adbd47f2a4d449464e2ccaafc197a70416487e Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 24 Jul 2013 14:52:43 -0700 Subject: [PATCH] debug: Send flow tree dump to stderr for consistency --- src/components/main/layout/flow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs index 765bd47114b..38fd16974b3 100644 --- a/src/components/main/layout/flow.rs +++ b/src/components/main/layout/flow.rs @@ -35,6 +35,7 @@ use layout::float_context::{FloatContext, Invalid, FloatType}; use std::cell::Cell; use std::uint; +use std::io::stderr; use geom::point::Point2D; use geom::rect::Rect; use gfx::display_list::DisplayList; @@ -414,7 +415,7 @@ impl<'self> FlowContext { } s.push_str(self.debug_str()); - println(s); + stderr().write_line(s); // FIXME: this should have a pure/const version? for self.each_child |child| {