layout: Fix merge fallout.

This commit is contained in:
Patrick Walton 2015-08-21 14:49:22 -07:00
parent 2fa2a3b5a9
commit 930dfbb7ad
5 changed files with 18 additions and 14 deletions

View file

@ -1215,9 +1215,12 @@ impl<'a> ImmutableFlowUtils for &'a Flow {
},
FlowClass::Flex => {
let fragment =
Fragment::new_anonymous_from_specific_info(node,
SpecificFragmentInfo::Generic);
box BlockFlow::from_fragment(fragment, None) as Box<Flow>
Fragment::from_opaque_node_and_style(node.opaque(),
PseudoElementType::Normal,
style,
node.restyle_damage(),
SpecificFragmentInfo::Generic);
Arc::new(BlockFlow::from_fragment(fragment, None))
},
_ => {
panic!("no need to generate a missing child")