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§

Enums§

Constants§

Statics§

Traits§

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.
  • get_cursor 🔒
    Gets the cursor to use given the specific ComputedValues. default_cursor specifies the cursor to use if cursor is auto. Typically, this will be PointerCursor, but for text display items it may be TextCursor or VerticalTextCursor.
  • Adjusts borders as appropriate to account for a fragment’s status as the first or last fragment within the range of an element.