diff options
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index f369d41daaf..656b4f8ae47 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1473,15 +1473,7 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS None => { // Pseudo-element. let style = node.style(self.style_context()); - let display = match node.get_pseudo_element_type() { - PseudoElementType::Normal => Display::Inline, - PseudoElementType::Before(maybe_display) | - PseudoElementType::After(maybe_display) | - PseudoElementType::DetailsContent(maybe_display) | - PseudoElementType::DetailsSummary(maybe_display) - => maybe_display.unwrap_or(style.get_box().display), - }; - (display, style.get_box().float, style.get_box().position) + (style.get_box().display, style.get_box().float, style.get_box().position) } Some(LayoutNodeType::Element(_)) => { let style = node.style(self.style_context()); |