mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Revert change to render media controls breaking inline layout
This commit is contained in:
parent
e344203c11
commit
1621076af7
1 changed files with 3 additions and 9 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue