mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix flow tree debug printing.
Nested `debug!()` calls are no-ops, so change it now does a `println`. Also moved to the `debug!()` calls out of the profiled block.
This commit is contained in:
parent
ddbe1c9c41
commit
94d83f96f1
2 changed files with 4 additions and 4 deletions
|
@ -414,7 +414,7 @@ impl<'self> FlowContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
s.push_str(self.debug_str());
|
s.push_str(self.debug_str());
|
||||||
debug!("%s", s);
|
println(s);
|
||||||
|
|
||||||
// FIXME: this should have a pure/const version?
|
// FIXME: this should have a pure/const version?
|
||||||
for self.each_child |child| {
|
for self.each_child |child| {
|
||||||
|
|
|
@ -210,12 +210,12 @@ impl LayoutTask {
|
||||||
Err(*) => fail!(~"Root flow should always exist")
|
Err(*) => fail!(~"Root flow should always exist")
|
||||||
};
|
};
|
||||||
|
|
||||||
debug!("layout: constructed Flow tree");
|
|
||||||
debug!("%?", layout_root.dump());
|
|
||||||
|
|
||||||
layout_root
|
layout_root
|
||||||
};
|
};
|
||||||
|
|
||||||
|
debug!("layout: constructed Flow tree");
|
||||||
|
debug!("", layout_root.dump());
|
||||||
|
|
||||||
// Perform the primary layout passes over the flow tree to compute the locations of all
|
// Perform the primary layout passes over the flow tree to compute the locations of all
|
||||||
// the boxes.
|
// the boxes.
|
||||||
do profile(time::LayoutMainCategory, self.profiler_chan.clone()) {
|
do profile(time::LayoutMainCategory, self.profiler_chan.clone()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue