mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use helpers.predefined_type for transform property.
This commit is contained in:
parent
fad4d7ae49
commit
8b9bbfea75
7 changed files with 45 additions and 51 deletions
|
@ -450,3 +450,10 @@ impl<T: ToCss> ToCss for Transform<T> {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Transform<T> {
|
||||
/// `none`
|
||||
pub fn none() -> Self {
|
||||
Transform(vec![])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue