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.
- 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.
- The address of a node known to be valid. These are sent from script to layout.
- Whether the pending image needs to be fetched or is waiting on an existing fetch.