mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
style: Remove unused optional display from PseudoElementType definition.
Everyone passes None now.
This commit is contained in:
parent
55174991b6
commit
cb2bba8777
3 changed files with 13 additions and 24 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue