Module layout_2013::display_list::builder
source · Expand description
Builds display lists from flows and fragments.
Other browser engines sometimes call this “painting”, but it is more accurately called display list building, as the actual painting does not happen here—only deciding what we’re going to paint.
Structs§
- This structure manages ensuring that modification to StackingContextCollectionState is only temporary. It’s useful for moving recursively down the flow tree and ensuring that the state is restored for siblings. To use this structure, we must call SavedStackingContextCollectionState::restore in order to restore the state. TODO(mrobinson): It would be nice to use RAII here to avoid having to call restore.
Enums§
- Describes how to paint the borders.
Constants§
- The logical width of an insertion point: at the moment, a one-pixel-wide line.
Statics§
Traits§
- ToF32Px 🔒
Functions§
- Get the border radius for the rectangle inside of a rounded border. This is useful for building the clip for the content inside the border.
- Gets the cursor to use given the specific ComputedValues.
default_cursor
specifies the cursor to use ifcursor
isauto
. Typically, this will bePointerCursor
, but for text display items it may beTextCursor
orVerticalTextCursor
. - Adjusts borders as appropriate to account for a fragment’s status as the first or last fragment within the range of an element.