Struct style::invalidation::stylesheets::StylesheetInvalidationSet
[−]
[src]
pub struct StylesheetInvalidationSet { /* fields omitted */ }A set of invalidations due to stylesheet additions.
TODO(emilio): We might be able to do the same analysis for media query changes too (or even selector changes?).
Methods
impl StylesheetInvalidationSet[src]
pub fn new() -> Self[src]
Create an empty StylesheetInvalidationSet.
pub fn invalidate_fully(&mut self)[src]
Mark the DOM tree styles' as fully invalid.
pub fn collect_invalidations_for<S>(
&mut self,
device: &Device,
stylesheet: &S,
guard: &SharedRwLockReadGuard
) where
S: StylesheetInDocument, [src]
&mut self,
device: &Device,
stylesheet: &S,
guard: &SharedRwLockReadGuard
) where
S: StylesheetInDocument,
Analyze the given stylesheet, and collect invalidations from their rules, in order to avoid doing a full restyle when we style the document next time.
pub fn flush<E>(&mut self, document_element: Option<E>) -> bool where
E: TElement, [src]
E: TElement,
Clears the invalidation set, invalidating elements as needed if
document_element is provided.
Returns true if any invalidations ocurred.
pub fn clear(&mut self)[src]
Clears the invalidation set without processing.
Trait Implementations
impl MallocSizeOf for StylesheetInvalidationSet[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more