Introduce style::values::generics::rect ▭

This defines a single type Rect<T> which allows us to abstract over
CSS values made of four sides top, right, bottom and left.
This commit is contained in:
Anthony Ramine 2017-05-23 02:40:12 +02:00
parent e9c5860808
commit 7a214831f0
10 changed files with 169 additions and 105 deletions

View file

@ -19,6 +19,7 @@ pub mod basic_shape;
pub mod grid;
pub mod image;
pub mod position;
pub mod rect;
#[derive(Clone, Debug, PartialEq, ToComputedValue)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]