Skip to main content

Module style_cache

Module style_cache 

Source
Expand description

Memoized style cache for resolved ComputedStyle values.

StyleCache wraps a CompiledStyleSheet and caches the result of CompiledStyleSheet::compute_style per (widget_type, classes, id, generation) key. When the stylesheet’s generation changes the cache is automatically invalidated and rebuilt on the next access.

Structs§

StyleCache
Memoizes ComputedStyle per (widget_type, classes, id, stylesheet_generation).