Added floats to the flow tree

This commit is contained in:
Eric Atkinson 2013-06-23 15:48:02 -07:00
parent d3fe4f4e3a
commit 94e7a86b7e
10 changed files with 398 additions and 51 deletions

View file

@ -225,9 +225,9 @@ impl Layout {
for layout_root.traverse_preorder |flow| {
flow.assign_widths(&mut layout_ctx);
};
for layout_root.traverse_postorder |flow| {
flow.assign_height(&mut layout_ctx);
};
// For now, this is an inorder traversal
layout_root.assign_height(&mut layout_ctx);
}
// Build the display list if necessary, and send it to the renderer.