style: Remove the ElementExt trait.

It is likely it's the most useless trait ever existing.
This commit is contained in:
Emilio Cobos Álvarez 2017-10-16 13:28:30 +02:00
parent 1e351ef8c4
commit bfe230f3ed
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 25 additions and 31 deletions

View file

@ -7,7 +7,6 @@
#![deny(missing_docs)]
use cssparser::{Parser as CssParser, ParserInput};
use selectors::Element;
use selectors::parser::SelectorList;
use std::fmt::{self, Debug};
use style_traits::ParseError;
@ -103,14 +102,6 @@ pub enum PseudoElementCascadeType {
Precomputed,
}
/// An extension to rust-selector's `Element` trait.
pub trait ElementExt: Element<Impl=SelectorImpl> + Debug {
/// Whether this element should match user and author rules.
///
/// We use this for Native Anonymous Content in Gecko.
fn matches_user_and_author_rules(&self) -> bool;
}
/// A per-functional-pseudo map, from a given pseudo to a `T`.
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]