mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +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
|
@ -16,14 +16,12 @@ use invalidation::element::element_wrapper::ElementSnapshot;
|
|||
use properties::ComputedValues;
|
||||
use properties::PropertyFlags;
|
||||
use properties::longhands::display::computed_value as display;
|
||||
use selector_parser::{AttrValue as SelectorAttrValue, ElementExt, PseudoElementCascadeType, SelectorParser};
|
||||
use selectors::Element;
|
||||
use selector_parser::{AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser};
|
||||
use selectors::attr::{AttrSelectorOperation, NamespaceConstraint, CaseSensitivity};
|
||||
use selectors::parser::{SelectorMethods, SelectorParseErrorKind};
|
||||
use selectors::visitor::SelectorVisitor;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::fmt;
|
||||
use std::fmt::Debug;
|
||||
use std::mem;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use style_traits::{ParseError, StyleParseErrorKind};
|
||||
|
@ -715,13 +713,6 @@ impl ServoElementSnapshot {
|
|||
}
|
||||
}
|
||||
|
||||
impl<E: Element<Impl=SelectorImpl> + Debug> ElementExt for E {
|
||||
#[inline]
|
||||
fn matches_user_and_author_rules(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns whether the language is matched, as defined by
|
||||
/// [RFC 4647](https://tools.ietf.org/html/rfc4647#section-3.3.2).
|
||||
pub fn extended_filtering(tag: &str, range: &str) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue