mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
e64ed839b6
commit
e3b988a1fe
2 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue