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§
- DomParallel
Info - Information that we need stored in each DOM node.
- Elements
From Point Flags - Elements
From Point Result - Describe an item that matched a hit-test query.
- HTML
Canvas Data - HTML
Media Data - IFrame
Size - Image
Animation State - Layout
Config - Layout
Damage - Individual layout actions that may be necessary after restyling. This is an extension
of
RestyleDamage
from stylo, which only uses the 4 lower bits. - Media
Frame - Media
Metadata - Offset
Parent Response - Pending
Image - 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.
- Pending
Rasterization Image - 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.
- Pending
Restyle - A pending restyle.
- Property
Registration - Reflow
Phases Run - The phases of reflow that were run when processing a reflow in layout.
- Reflow
Request - Information needed for a script-initiated reflow.
- Reflow
Request Restyle - Information needed for a script-initiated reflow that requires a restyle and reconstruction of box and fragment trees.
- Reflow
Result - Information derived from a layout pass that needs to be returned to the script thread.
- Restyle
Reason - Conditions which cause a [
Document
] to need to be restyled during reflow, which might cause the rest of layout to happen as well. - SVGElement
Data - Style
Data - Trusted
Node Address - The address of a node known to be valid. These are sent from script to layout.
Enums§
- BoxArea
Type - Type of the area of CSS box for query. See https://www.w3.org/TR/css-box-3/#box-model.
- Fragment
Type - The type of fragment that a scroll root is created for.
- Layout
Element Type - Layout
Node Type - Pending
Image State - Whether the pending image needs to be fetched or is waiting on an existing fetch.
- Query
Msg - Reflow
Goal - The goal of a reflow request.
- Register
Property Error
Constants§
- SPECIAL_
SCROLL_ 🔒ROOT_ ID_ MASK - 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§
- NEXT_
SPECIAL_ 🔒SCROLL_ ROOT_ ID - The next ID that will be used for a special scroll root id.
Traits§
- Generic
Layout Data Trait - Layout
- Layout
Factory - Script
Thread Factory - 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§
- combine_
id_ with_ fragment_ type - next_
special_ 🔒id - Returns a new scroll root ID for a scroll root.
- node_
id_ from_ scroll_ id