auto merge of #612 : metajack/servo/float-children, r=jdm

They were being positioned outside their parent's box in some cases.
This commit is contained in:
bors-servo 2013-07-22 09:51:27 -07:00
commit 4f227e0a98
3 changed files with 5 additions and 5 deletions

View file

@ -253,7 +253,7 @@ impl FloatFlowData {
let flow = FloatFlow(self);
for flow.each_child |child| {
do child.with_mut_base |base| {
base.abs_position = offset;
base.abs_position = offset + base.position.origin;
}
}

View file

@ -414,7 +414,7 @@ impl<'self> FlowContext {
}
s.push_str(self.debug_str());
debug!("%s", s);
println(s);
// FIXME: this should have a pure/const version?
for self.each_child |child| {

View file

@ -210,12 +210,12 @@ impl LayoutTask {
Err(*) => fail!(~"Root flow should always exist")
};
debug!("layout: constructed Flow tree");
debug!("%?", layout_root.dump());
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
// the boxes.
do profile(time::LayoutMainCategory, self.profiler_chan.clone()) {