Structsยง
- Cache key that uniquely identifies a border segment in the render task cache.
- DotInfo ๐
- Edge
Info ๐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.