layout: Add a field in the display list for simple border radii on box

shadows.

Only supported in WebRender (with my upcoming PR) for now.
This commit is contained in:
Patrick Walton 2015-10-06 14:04:13 -07:00
parent e64ed839b6
commit e3b988a1fe
2 changed files with 12 additions and 0 deletions

View file

@ -1198,6 +1198,11 @@ pub struct BoxShadowDisplayItem {
/// The spread radius of this shadow.
pub spread_radius: Au,
/// The border radius of this shadow.
///
/// TODO(pcwalton): Elliptical radii; different radii for each corner.
pub border_radius: Au,
/// How we should clip the result.
pub clip_mode: BoxShadowClipMode,
}