diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-05-11 17:39:09 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-05-15 15:35:31 +0200 |
commit | f2aaba685b81d7cf8311bbe791681d1ab55cfa78 (patch) | |
tree | de2d2ac6eebd7b5320943f3602eeb95d64ea1d70 /components/style/gecko/conversions.rs | |
parent | 1c54758ad6b1279500921dd2661289f4f23ef44e (diff) | |
download | servo-f2aaba685b81d7cf8311bbe791681d1ab55cfa78.tar.gz servo-f2aaba685b81d7cf8311bbe791681d1ab55cfa78.zip |
Kill side keywords from style::values::specified::image
Diffstat (limited to 'components/style/gecko/conversions.rs')
-rw-r--r-- | components/style/gecko/conversions.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/style/gecko/conversions.rs b/components/style/gecko/conversions.rs index d3d74234c35..7dc333964e4 100644 --- a/components/style/gecko/conversions.rs +++ b/components/style/gecko/conversions.rs @@ -194,7 +194,8 @@ impl nsStyleImage { use gecko_bindings::structs::nsStyleCoord; use values::computed::{AngleOrCorner, GradientKind, GradientShape, LengthOrKeyword}; use values::computed::LengthOrPercentageOrKeyword; - use values::specified::{HorizontalDirection, SizeKeyword, VerticalDirection}; + use values::specified::SizeKeyword; + use values::specified::position::{X, Y}; let stop_count = gradient.items.len(); if stop_count >= ::std::u32::MAX as usize { @@ -222,12 +223,12 @@ impl nsStyleImage { }, AngleOrCorner::Corner(horiz, vert) => { let percent_x = match horiz { - HorizontalDirection::Left => 0.0, - HorizontalDirection::Right => 1.0, + X::Left => 0.0, + X::Right => 1.0, }; let percent_y = match vert { - VerticalDirection::Top => 0.0, - VerticalDirection::Bottom => 1.0, + Y::Top => 0.0, + Y::Bottom => 1.0, }; unsafe { |