mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
commit
4f227e0a98
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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| {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue