mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove the ElementExt trait.
It is likely it's the most useless trait ever existing.
This commit is contained in:
parent
1e351ef8c4
commit
bfe230f3ed
4 changed files with 25 additions and 31 deletions
|
@ -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))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue