Struct style::stylesheet_set::StylesheetSet [] [src]

pub struct StylesheetSet<S> where
    S: StylesheetInDocument + PartialEq + 'static, 
{ /* fields omitted */ }

The set of stylesheets effective for a given document.

Methods

impl<S> StylesheetSet<S> where
    S: StylesheetInDocument + PartialEq + 'static, 
[src]

[src]

Create a new empty StylesheetSet.

[src]

Returns the number of stylesheets in the set.

[src]

Returns the indexth stylesheet in the set for the given origin.

[src]

Returns whether author styles have been disabled for the current stylesheet set.

[src]

Appends a new stylesheet to the current set.

No device implies not computing invalidations.

[src]

Prepend a new stylesheet to the current set.

[src]

Insert a given stylesheet before another stylesheet in the document.

[src]

Remove a given stylesheet from the set.

[src]

Notes that the author style has been disabled for this document.

[src]

Returns whether the given set has changed from the last flush.

[src]

Flush the current set, unmarking it as dirty, and returns a StylesheetFlusher in order to rebuild the stylist.

[src]

Flush stylesheets, but without running any of the invalidation passes.

Important traits for StylesheetIterator<'a, S>
[src]

Return an iterator over the flattened view of all the stylesheets.

[src]

Mark the stylesheets for the specified origin as dirty, because something external may have invalidated it.

Trait Implementations

impl<S> MallocSizeOf for StylesheetSet<S> where
    S: StylesheetInDocument + PartialEq + 'static,
    S: MallocSizeOf
[src]

[src]

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