layout: Add a FIXME for #19771.

This commit is contained in:
Emilio Cobos Álvarez 2018-01-15 03:12:08 +01:00
parent ecf538ff04
commit 95edda93c4
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1481,6 +1481,9 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS
}
Some(LayoutNodeType::Element(_)) => {
let original_display = style.get_box().original_display;
// FIXME(emilio, #19771): This munged_display business is pretty
// wrong. After we fix this we should be able to unify the
// pseudo-element path too.
let munged_display = match original_display {
Display::Inline | Display::InlineBlock => original_display,
_ => style.get_box().display,