mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Report invalid selectors (bug 1384216).
This commit is contained in:
parent
408c34a76d
commit
9a7cceb0a1
3 changed files with 51 additions and 14 deletions
|
@ -90,6 +90,12 @@ impl<Impl: SelectorImpl> SelectorBuilder<Impl> {
|
|||
self.simple_selectors.is_empty()
|
||||
}
|
||||
|
||||
/// Returns true if combinators have ever been pushed to this builder.
|
||||
#[inline(always)]
|
||||
pub fn has_combinators(&self) -> bool {
|
||||
!self.combinators.is_empty()
|
||||
}
|
||||
|
||||
/// Consumes the builder, producing a Selector.
|
||||
#[inline(always)]
|
||||
pub fn build(&mut self, parsed_pseudo: bool) -> ThinArc<SpecificityAndFlags, Component<Impl>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue