style: Remove unused optional display from PseudoElementType definition.

Everyone passes None now.
This commit is contained in:
Emilio Cobos Álvarez 2018-01-14 21:18:00 +01:00
parent 55174991b6
commit cb2bba8777
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 13 additions and 24 deletions

View file

@ -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());