pub trait OurSelectorExt
{
#[inline(always)]
fn is_false_if_any_selector_is_simple_and_only_uses_the_descendant_combinator(&self) -> bool;
}
impl OurSelectorExt for OurSelector
{
#[inline(always)]
fn is_false_if_any_selector_is_simple_and_only_uses_the_descendant_combinator(&self) -> bool
{
use self::Combinator::*;
for component in self.iter_raw_match_order()
{
match *component
{
Component::Combinator(ref combinator) => if combinator != &Descendant
{
return true;
},
Component::PseudoElement(..) => return true,
_ =>
{
}
}
}
false
}
}