diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-11-11 14:57:12 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-11-12 16:22:45 +0100 |
commit | 4927786d90b0d7da6419ed7fb9f7dade18d928ab (patch) | |
tree | e5aa3bb8be1971996c72b24bcb80583fad66aa51 /components/layout/display_list_builder.rs | |
parent | 1b533f9bdcdd5a8c4524926ace61f88836a74f28 (diff) | |
download | servo-4927786d90b0d7da6419ed7fb9f7dade18d928ab.tar.gz servo-4927786d90b0d7da6419ed7fb9f7dade18d928ab.zip |
style: Implement css(dimension) and derive ToCss for a bunch of stuff.
For css(dimension), it'd be nice to derive(Parse) too, I think...
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r-- | components/layout/display_list_builder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index c8c2f043b0f..cda9f31d878 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1315,14 +1315,14 @@ impl FragmentDisplayListBuilding for Fragment { LineDirection::Angle(angle) => angle.radians(), LineDirection::Horizontal(x) => { match x { - X::Left => Angle::Degree(270.).radians(), - X::Right => Angle::Degree(90.).radians(), + X::Left => Angle::Deg(270.).radians(), + X::Right => Angle::Deg(90.).radians(), } }, LineDirection::Vertical(y) => { match y { - Y::Top => Angle::Degree(0.).radians(), - Y::Bottom => Angle::Degree(180.).radians(), + Y::Top => Angle::Deg(0.).radians(), + Y::Bottom => Angle::Deg(180.).radians(), } }, LineDirection::Corner(horizontal, vertical) => { |