Struct style::stylesheets::Stylesheet [] [src]

pub struct Stylesheet {
    pub contents: StylesheetContents,
    pub shared_lock: SharedRwLock,
    pub media: Arc<Locked<MediaList>>,
    pub disabled: AtomicBool,
}

The structure servo uses to represent a stylesheet.

Fields

The contents of this stylesheet.

The lock used for objects inside this stylesheet

List of media associated with the Stylesheet.

Whether this stylesheet should be disabled.

Methods

impl Stylesheet
[src]

[src]

Parse a stylesheet from a set of bytes, potentially received over the network.

Takes care of decoding the network bytes and forwards the resulting string to Stylesheet::from_str.

[src]

Updates an empty stylesheet with a set of bytes that reached over the network.

impl Stylesheet
[src]

[src]

Updates an empty stylesheet from a given string of text.

[src]

Creates an empty stylesheet and parses it with a given base url, origin and media.

Effectively creates a new stylesheet and forwards the hard work to Stylesheet::update_from_str.

[src]

Returns whether the stylesheet has been explicitly disabled through the CSSOM.

[src]

Records that the stylesheet has been explicitly disabled through the CSSOM.

Returns whether the the call resulted in a change in disabled state.

Disabled stylesheets remain in the document, but their rules are not added to the Stylist.

Trait Implementations

impl ToMediaListKey for Stylesheet
[src]

[src]

Get a MediaListKey for this item. This key needs to uniquely identify the item. Read more

impl Debug for Stylesheet
[src]

[src]

Formats the value using the given formatter. Read more

impl StylesheetInDocument for Stylesheet
[src]

[src]

Get the contents of this stylesheet.

[src]

Get the media associated with this stylesheet.

[src]

Get whether this stylesheet is enabled.

[src]

Get the stylesheet origin.

[src]

Get the stylesheet quirks mode.

[src]

Returns whether the style-sheet applies for the current device.

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

Return an iterator using the condition C.

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

Return an iterator over the effective rules within the style-sheet, as according to the supplied Device. Read more

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl Clone for Stylesheet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more