Place float children of floats correctly in the flow tree.

This commit is contained in:
Jack Moffitt 2013-08-05 17:23:32 -06:00
parent 63e7866ce3
commit 9fcf8b4402

View file

@ -401,7 +401,8 @@ impl LayoutTreeBuilder {
let new_generator = match (display, parent_generator.flow, sibling_flow) {
// Floats
(CSSDisplayBlock, BlockFlow(_), _) if !is_float.is_none() => {
(CSSDisplayBlock, BlockFlow(_), _) |
(CSSDisplayBlock, FloatFlow(_), _) if !is_float.is_none() => {
self.create_child_generator(node, parent_generator, Flow_Float(is_float.get()))
}
// If we're placing a float after an inline, append the float to the inline flow,