mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use euclid data types for physical structs in layout_2020
This removes a bit of duplication and allows layout_2020 to benefit from a much richer set of utilities.
This commit is contained in:
parent
ee3fb92e53
commit
02deb99a05
8 changed files with 184 additions and 273 deletions
|
@ -715,7 +715,7 @@ impl CSSPixelLength {
|
|||
}
|
||||
}
|
||||
|
||||
impl Zero for CSSPixelLength {
|
||||
impl num_traits::Zero for CSSPixelLength {
|
||||
fn zero() -> Self {
|
||||
CSSPixelLength::new(0.)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue