From 9fcf8b4402ea2fd10c7ff44fce86a59020ac4b82 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Mon, 5 Aug 2013 17:23:32 -0600 Subject: [PATCH] Place float children of floats correctly in the flow tree. --- src/components/main/layout/box_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/main/layout/box_builder.rs b/src/components/main/layout/box_builder.rs index fd5dfd5bbc1..643a7b80b5d 100644 --- a/src/components/main/layout/box_builder.rs +++ b/src/components/main/layout/box_builder.rs @@ -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,