mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Create a module for generics and make BorderRadiusSize generic
This commit is contained in:
parent
c5c6e8c442
commit
0249270f61
9 changed files with 91 additions and 74 deletions
|
@ -1146,7 +1146,9 @@ impl ToCss for LengthOrPercentage {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl LengthOrPercentage {
|
||||
#[inline]
|
||||
/// Returns a `zero` length.
|
||||
pub fn zero() -> LengthOrPercentage {
|
||||
LengthOrPercentage::Length(NoCalcLength::zero())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue