Struct style::stylesheets::StylesheetContents [] [src]

pub struct StylesheetContents {
    pub rules: Arc<Locked<CssRules>>,
    pub origin: Origin,
    pub url_data: RwLock<UrlExtraData>,
    pub namespaces: RwLock<Namespaces>,
    pub quirks_mode: QuirksMode,
    pub source_map_url: RwLock<Option<String>>,
    pub source_url: RwLock<Option<String>>,
}

The contents of a given stylesheet. This effectively maps to a StyleSheetInner in Gecko.

Fields

List of rules in the order they were found (important for cascading order)

The origin of this stylesheet.

The url data this stylesheet should use.

The namespaces that apply to this stylesheet.

The quirks mode of this stylesheet.

This stylesheet's source map URL.

This stylesheet's source URL.

Methods

impl StylesheetContents
[src]

[src]

Parse a given CSS string, with a given url-data, origin, and quirks mode.

Important traits for RulesIterator<'a, 'b, C>
[src]

Return an iterator using the condition C.

Trait Implementations

impl Debug for StylesheetContents
[src]

[src]

Formats the value using the given formatter. Read more

impl DeepCloneWithLock for StylesheetContents
[src]

[src]

Deep clones this object.