Structsยง
- Cache key that uniquely identifies a border segment in the render task cache.
- DotInfo ๐
- EdgeInfo ๐Information needed to place and draw a border edge.
Enumsยง
- The kind of border corner clip.
Constantsยง
- Maximum resolution in device pixels at which borders are rasterized.
- Maximum number of dots or dashes per segment to avoid freezing and filling up memory with unreasonable inputs. It would be better to address this by not building a list of per-dot information in the first place.
Traitsยง
Functionsยง
- add_corner_segment ๐Add a corner segment (if valid) to the list of border segments for this primitive.
- add_edge_segment ๐Add an edge segment (if valid) to the list of border segments for this primitive.
- add_segment ๐
- Build the set of border instances needed to draw a border segment into the render task cache.
- compute_half_dash ๐
- Create the set of border segments and render task cache keys for a given CSS border.
- get_edge_info ๐
- Computes the maximum scale that we allow for this set of border parameters. capping the scale will result in rendering very large corners at a lower resolution and stretching them, so they will have the right shape, but blurrier.