style: Manually rename some variables.

lop is not an acceptable variable name for LengthPercentage.

Differential Revision: https://phabricator.services.mozilla.com/D15813
This commit is contained in:
Emilio Cobos Álvarez 2019-01-07 12:20:42 +01:00
parent daf1f02feb
commit 80651fde47
14 changed files with 92 additions and 92 deletions

View file

@ -190,7 +190,7 @@ impl<L> TrackBreadth<L> {
#[inline]
pub fn is_fixed(&self) -> bool {
match *self {
TrackBreadth::Breadth(ref _lop) => true,
TrackBreadth::Breadth(ref _lp) => true,
_ => false,
}
}
@ -278,9 +278,9 @@ impl<L: ToCss> ToCss for TrackSize<L> {
max.to_css(dest)?;
dest.write_str(")")
},
TrackSize::FitContent(ref lop) => {
TrackSize::FitContent(ref lp) => {
dest.write_str("fit-content(")?;
lop.to_css(dest)?;
lp.to_css(dest)?;
dest.write_str(")")
},
}
@ -308,7 +308,7 @@ impl<L: ToComputedValue> ToComputedValue for TrackSize<L> {
TrackSize::Minmax(ref b1, ref b2) => {
TrackSize::Minmax(b1.to_computed_value(context), b2.to_computed_value(context))
},
TrackSize::FitContent(ref lop) => TrackSize::FitContent(lop.to_computed_value(context)),
TrackSize::FitContent(ref lp) => TrackSize::FitContent(lp.to_computed_value(context)),
}
}
@ -322,8 +322,8 @@ impl<L: ToComputedValue> ToComputedValue for TrackSize<L> {
ToComputedValue::from_computed_value(b1),
ToComputedValue::from_computed_value(b2),
),
TrackSize::FitContent(ref lop) => {
TrackSize::FitContent(ToComputedValue::from_computed_value(lop))
TrackSize::FitContent(ref lp) => {
TrackSize::FitContent(ToComputedValue::from_computed_value(lp))
},
}
}

View file

@ -162,8 +162,8 @@ impl<LengthPercentageType: Parse, NumberType: Parse> Parse
return Ok(SvgLengthPercentageOrNumber::Number(num));
}
let lop = LengthPercentageType::parse(context, input)?;
Ok(SvgLengthPercentageOrNumber::LengthPercentage(lop))
let lp = LengthPercentageType::parse(context, input)?;
Ok(SvgLengthPercentageOrNumber::LengthPercentage(lp))
}
}