Expand description
The context within which style is calculated.
Structs§
- Cascade
Inputs - The structure holds various intermediate inputs that are eventually used by by the cascade.
- Eager
Pseudo Cascade Inputs - A list of cascade inputs for eagerly-cascaded pseudo-elements. The list is stored inline.
- Element
Cascade Inputs - The cascade inputs associated with a node, including those for any pseudo-elements.
- PerThread
Traversal Statistics - Statistics gathered during the traversal. We gather statistics on each thread and then combine them after the threads join via the Add implementation below.
- Sequential
Task List - A list of SequentialTasks that get executed on Drop.
- Shared
Style Context - A shared style context.
- Stack
Limit Checker - A helper type for stack limit checking. This assumes that stacks grow down, which is true for all non-ancient CPU architectures.
- Style
Context - A
StyleContext
is just a simple container for a immutable reference to a shared style context, and a mutable reference to a local one. - Style
System Options - A global options structure for the style system. We use this instead of opts to abstract across Gecko and Servo.
- Thread
Local Style Context - A thread-local style context.
- Traversal
Statistics - Statistics gathered during the traversal plus some information from other sources including stylist.
Enums§
- Quirks
Mode - Which quirks mode is this document in.
- Sequential
Task - A task to be run in sequential mode on the parent (non-worker) thread. This is used by the style system to queue up work which is not safe to do during the parallel traversal.
Constants§
Statics§
- DEFAULT_
DISABLE_ STYLE_ SHARING_ CACHE - A global variable holding the state of
StyleSystemOptions::default().disable_style_sharing_cache
. See #22854. - DEFAULT_
DUMP_ STYLE_ STATISTICS - A global variable holding the state of
StyleSystemOptions::default().dump_style_statistics
. See #22854.
Traits§
- Registered
Speculative Painter - A registered painter
- Registered
Speculative Painters - A set of registered painters