Crate script_layout_interface
source ·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.
- 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 pending restyle.
- Information needed for a reflow.
- Information needed for a script-initiated reflow.
- Information derived from a layout pass that needs to be returned to the script thread.
- 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
script_layout_interface
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.