mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01: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.
|
// Go to a path that concatenates our kids' fragments.
|
||||||
self.build_fragments_for_nonreplaced_inline_content(node)
|
self.build_fragments_for_nonreplaced_inline_content(node)
|
||||||
} else {
|
} else {
|
||||||
if node.type_id() == Some(LayoutNodeType::Element(LayoutElementType::HTMLMediaElement))
|
// Otherwise, just nuke our kids' fragments, create our fragment if any, and be done
|
||||||
{
|
// with it.
|
||||||
// Do not treat media elements as leafs.
|
self.build_fragments_for_replaced_inline_content(node)
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue