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

@ -63,7 +63,6 @@ use std::sync::atomic::Ordering;
use style::CaseSensitivityExt;
use style::applicable_declarations::ApplicableDeclarationBlock;
use style::attr::AttrValue;
use style::computed_values::display;
use style::context::SharedStyleContext;
use style::data::ElementData;
use style::dom::{DomChildren, LayoutIterator, NodeInfo, OpaqueNode};
@ -804,7 +803,7 @@ pub struct ServoThreadSafeLayoutNode<'ln> {
/// The pseudo-element type, with (optionally)
/// a specified display value to override the stylesheet.
pseudo: PseudoElementType<Option<display::T>>,
pseudo: PseudoElementType<()>,
}
impl<'a> PartialEq for ServoThreadSafeLayoutNode<'a> {
@ -1083,7 +1082,7 @@ pub struct ServoThreadSafeLayoutElement<'le> {
/// The pseudo-element type, with (optionally)
/// a specified display value to override the stylesheet.
pseudo: PseudoElementType<Option<display::T>>,
pseudo: PseudoElementType<()>,
}
impl<'le> ThreadSafeLayoutElement for ServoThreadSafeLayoutElement<'le> {
@ -1096,15 +1095,14 @@ impl<'le> ThreadSafeLayoutElement for ServoThreadSafeLayoutElement<'le> {
}
}
fn get_pseudo_element_type(&self) -> PseudoElementType<Option<display::T>> {
fn get_pseudo_element_type(&self) -> PseudoElementType<()> {
self.pseudo
}
fn with_pseudo(&self,
pseudo: PseudoElementType<Option<display::T>>) -> Self {
fn with_pseudo(&self, pseudo: PseudoElementType<()>) -> Self {
ServoThreadSafeLayoutElement {
element: self.element.clone(),
pseudo: pseudo,
pseudo,
}
}