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.
Modules§
Structs§
- Information that we need stored in each DOM node.
- Individual layout actions that may be necessary after restyling. This is an extension of
RestyleDamage
from stylo, which only uses the 4 lower bits. - The data associated with an image that is not yet present in the image cache. Used by the script thread to hold on to DOM elements that need to be repainted when an image fetch is complete.
- A data structure to tarck vector image that are fully loaded (i.e has a parsed SVG tree) but not yet rasterized to the size needed by layout. The rasterization is happening in the image cache.
- A pending restyle.
- Information needed for a script-initiated reflow.
- Information needed for a script-initiated reflow that requires a restyle and reconstruction of box and fragment trees.
- Information derived from a layout pass that needs to be returned to the script thread.
- Conditions which cause a [
Document
] to need to be restyled during reflow, which might cause the rest of layout to happen as well. - The address of a node known to be valid. These are sent from script to layout.
Enums§
- The type of fragment that a scroll root is created for.
- Whether the pending image needs to be fetched or is waiting on an existing fetch.
- The goal of a reflow request.
Constants§
- If none of the bits outside this mask are set, the scroll root is a special scroll root. Note that we assume that the top 16 bits of the address space are unused on the platform.
Statics§
- The next ID that will be used for a special scroll root id.
Traits§
- This trait is part of
layout_api
because it depends on bothscript_traits
and alsoLayoutFactory
from this crate. If it was inscript_traits
there would be a circular dependency.
Functions§
- Returns a new scroll root ID for a scroll root.