diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-07-12 10:50:55 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-07-12 11:45:17 +0200 |
commit | 7bc9a95b46399023600671a4bff7a23722e46cb0 (patch) | |
tree | 13ed19194f601a3eccf73413c7b92ba1725a2699 | |
parent | c2e746004a3a6a295876198312b4d04533c07727 (diff) | |
download | servo-7bc9a95b46399023600671a4bff7a23722e46cb0.tar.gz servo-7bc9a95b46399023600671a4bff7a23722e46cb0.zip |
Rename MinMax to Minmax
-rw-r--r-- | components/style/gecko/conversions.rs | 4 | ||||
-rw-r--r-- | components/style/values/generics/grid.rs | 16 | ||||
-rw-r--r-- | components/style/values/specified/grid.rs | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/components/style/gecko/conversions.rs b/components/style/gecko/conversions.rs index d29f3a0979d..6314069cb18 100644 --- a/components/style/gecko/conversions.rs +++ b/components/style/gecko/conversions.rs @@ -815,7 +815,7 @@ impl TrackSize<LengthOrPercentage> { if min == max { TrackSize::Breadth(max) } else { - TrackSize::MinMax(min, max) + TrackSize::Minmax(min, max) } } @@ -836,7 +836,7 @@ impl TrackSize<LengthOrPercentage> { breadth.to_gecko_style_coord(gecko_min); breadth.to_gecko_style_coord(gecko_max); }, - TrackSize::MinMax(ref min, ref max) => { + TrackSize::Minmax(ref min, ref max) => { min.to_gecko_style_coord(gecko_min); max.to_gecko_style_coord(gecko_max); }, diff --git a/components/style/values/generics/grid.rs b/components/style/values/generics/grid.rs index a53402f9b3f..68049274c12 100644 --- a/components/style/values/generics/grid.rs +++ b/components/style/values/generics/grid.rs @@ -213,7 +213,7 @@ pub enum TrackSize<L> { /// and a flexible `<track-breadth>` /// /// https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-minmax - MinMax(TrackBreadth<L>, TrackBreadth<L>), + Minmax(TrackBreadth<L>, TrackBreadth<L>), /// A `fit-content` function. /// /// https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content @@ -231,7 +231,7 @@ impl<L> TrackSize<L> { // minmax(<fixed-breadth>, <track-breadth>) or minmax(<inflexible-breadth>, <fixed-breadth>), // and since both variants are a subset of minmax(<inflexible-breadth>, <track-breadth>), we only // need to make sure that they're fixed. So, we don't have to modify the parsing function. - TrackSize::MinMax(ref breadth_1, ref breadth_2) => { + TrackSize::Minmax(ref breadth_1, ref breadth_2) => { if breadth_1.is_fixed() { return true // the second value is always a <track-breadth> } @@ -263,7 +263,7 @@ impl<L: ToCss> ToCss for TrackSize<L> { fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write { match *self { TrackSize::Breadth(ref b) => b.to_css(dest), - TrackSize::MinMax(ref infexible, ref flexible) => { + TrackSize::Minmax(ref infexible, ref flexible) => { dest.write_str("minmax(")?; infexible.to_css(dest)?; dest.write_str(", ")?; @@ -289,11 +289,11 @@ impl<L: ToComputedValue> ToComputedValue for TrackSize<L> { // <flex> outside `minmax()` expands to `mimmax(auto, <flex>)` // https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-flex TrackBreadth::Flex(f) => - TrackSize::MinMax(TrackBreadth::Keyword(TrackKeyword::Auto), TrackBreadth::Flex(f)), + TrackSize::Minmax(TrackBreadth::Keyword(TrackKeyword::Auto), TrackBreadth::Flex(f)), _ => TrackSize::Breadth(b.to_computed_value(context)), }, - TrackSize::MinMax(ref b_1, ref b_2) => - TrackSize::MinMax(b_1.to_computed_value(context), b_2.to_computed_value(context)), + TrackSize::Minmax(ref b_1, ref b_2) => + TrackSize::Minmax(b_1.to_computed_value(context), b_2.to_computed_value(context)), TrackSize::FitContent(ref lop) => TrackSize::FitContent(lop.to_computed_value(context)), } } @@ -303,8 +303,8 @@ impl<L: ToComputedValue> ToComputedValue for TrackSize<L> { match *computed { TrackSize::Breadth(ref b) => TrackSize::Breadth(ToComputedValue::from_computed_value(b)), - TrackSize::MinMax(ref b_1, ref b_2) => - TrackSize::MinMax(ToComputedValue::from_computed_value(b_1), + TrackSize::Minmax(ref b_1, ref b_2) => + TrackSize::Minmax(ToComputedValue::from_computed_value(b_1), ToComputedValue::from_computed_value(b_2)), TrackSize::FitContent(ref lop) => TrackSize::FitContent(ToComputedValue::from_computed_value(lop)), diff --git a/components/style/values/specified/grid.rs b/components/style/values/specified/grid.rs index 50d88fee175..be0ced6cd56 100644 --- a/components/style/values/specified/grid.rs +++ b/components/style/values/specified/grid.rs @@ -68,7 +68,7 @@ impl Parse for TrackSize<LengthOrPercentage> { }; input.expect_comma()?; - Ok(TrackSize::MinMax(inflexible_breadth, TrackBreadth::parse(context, input)?)) + Ok(TrackSize::Minmax(inflexible_breadth, TrackBreadth::parse(context, input)?)) }); } |