Expand description
This module contains traits in script used generically in the rest of Servo. The traits are here instead of in script so that these modules won’t have to depend on script.
Structs§
- Constellation
Input Event - Input events from the embedder that are sent via the
Constellation`` to the
ScriptThread`. - DrawA
Paint Image Result - The result of executing paint code: the image together with any image URLs that need to be loaded.
- Initial
Script State - Data needed to construct a script thread.
- NewLayout
Info - The initial data required to create a new layout attached to an existing script thread.
Enums§
- Discard
Browsing Context - When a pipeline is closed, should its browsing context be discarded too?
- Document
Activity - Is a document fully active, active or inactive? A document is active if it is the current active document in its session history, it is fuly active if it is active and all of its ancestors are active, and it is inactive otherwise.
- Document
State - Used to determine if a script has any pending asynchronous activity.
- Paint
Worklet Error - Errors from executing a paint worklet
- Progressive
WebMetric Type - Type of recorded progressive web metric
- Script
Thread Message - Messages sent to the
ScriptThread
event loop from theConstellation
,Compositor
, and (for now)Layout
. - Update
Pipeline IdReason - The reason why the pipeline id of an iframe is being updated.
Traits§
- Painter
- Execute paint code in the worklet thread pool.