mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
daf1f02feb
commit
80651fde47
14 changed files with 92 additions and 92 deletions
|
@ -556,8 +556,8 @@ impl LengthPercentageOrNone {
|
|||
pub fn to_used_value(&self, containing_length: Au) -> Option<Au> {
|
||||
match *self {
|
||||
LengthPercentageOrNone::None => None,
|
||||
LengthPercentageOrNone::LengthPercentage(ref lop) => {
|
||||
Some(lop.to_used_value(containing_length))
|
||||
LengthPercentageOrNone::LengthPercentage(ref lp) => {
|
||||
Some(lp.to_used_value(containing_length))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -616,15 +616,15 @@ impl From<NonNegativeLength> for NonNegativeLengthPercentage {
|
|||
|
||||
impl From<LengthPercentage> for NonNegativeLengthPercentage {
|
||||
#[inline]
|
||||
fn from(lop: LengthPercentage) -> Self {
|
||||
NonNegative::<LengthPercentage>(lop)
|
||||
fn from(lp: LengthPercentage) -> Self {
|
||||
NonNegative::<LengthPercentage>(lp)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<NonNegativeLengthPercentage> for LengthPercentage {
|
||||
#[inline]
|
||||
fn from(lop: NonNegativeLengthPercentage) -> LengthPercentage {
|
||||
lop.0
|
||||
fn from(lp: NonNegativeLengthPercentage) -> LengthPercentage {
|
||||
lp.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue