From 1621076af72c638b0f46b9ed2bb7cc5da4ad42f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Thu, 16 May 2019 14:32:02 +0200 Subject: [PATCH] Revert change to render media controls breaking inline layout --- components/layout/construct.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 38c2c9f4f1e..072413995b2 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -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) } }