diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-14 21:18:00 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-14 21:45:38 +0100 |
commit | cb2bba8777192b416989527d472fdd0348f0b551 (patch) | |
tree | b93268c02161a7c82d317f0b090536850009b083 /components/layout/construct.rs | |
parent | 55174991b6a4e80b8abdaa2c3d23f66beb85c298 (diff) | |
download | servo-cb2bba8777192b416989527d472fdd0348f0b551.tar.gz servo-cb2bba8777192b416989527d472fdd0348f0b551.zip |
style: Remove unused optional display from PseudoElementType definition.
Everyone passes None now.
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()); |