Revert change to render media controls breaking inline layout

This commit is contained in:
Fernando Jiménez Moreno 2019-05-16 14:32:02 +02:00
parent e344203c11
commit 1621076af7

View file

@ -1255,15 +1255,9 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
// Go to a path that concatenates our kids' fragments.
self.build_fragments_for_nonreplaced_inline_content(node)
} else {
if node.type_id() == Some(LayoutNodeType::Element(LayoutElementType::HTMLMediaElement))
{
// Do not treat media elements as leafs.
self.build_flow_for_block(node, None)
} else {
// Otherwise, just nuke our kids' fragments, create our fragment if any, and be done
// with it.
self.build_fragments_for_replaced_inline_content(node)
}
// Otherwise, just nuke our kids' fragments, create our fragment if any, and be done
// with it.
self.build_fragments_for_replaced_inline_content(node)
}
}