Struct style::selector_parser::SelectorParser [] [src]

pub struct SelectorParser<'a> {
    pub stylesheet_origin: Origin,
    pub namespaces: &'a Namespaces,
    pub url_data: Option<&'a UrlExtraData>,
}

Servo's selector parser.

Fields

The origin of the stylesheet we're parsing.

The namespace set of the stylesheet.

The extra URL data of the stylesheet, which is used to look up whether we are parsing a chrome:// URL style sheet.

Methods

impl<'a> SelectorParser<'a>
[src]

[src]

Parse a selector list with an author origin and without taking into account namespaces.

This is used for some DOM APIs like querySelector.

[src]

Whether we're parsing selectors in a user-agent stylesheet.

[src]

Whether we're parsing selectors in a stylesheet that has chrome privilege.

Trait Implementations

impl<'a> MallocSizeOf for SelectorParser<'a>
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl<'a, 'i> Parser<'i> for SelectorParser<'a>
[src]

[src]

This function can return an "Err" pseudo-element in order to support CSS2.1 pseudo-elements. Read more

[src]

[src]

[src]

[src]

[src]

Whether the name is a pseudo-element that can be specified with the single colon syntax in addition to the double-colon syntax. Read more

[src]

Whether to parse the ::slotted() pseudo-element.

[src]