mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Fix C++ side of <length-percentage> values.
Differential Revision: https://phabricator.services.mozilla.com/D63398
This commit is contained in:
parent
7e8dbd0896
commit
280402b2a1
3 changed files with 10 additions and 10 deletions
|
@ -397,8 +397,7 @@ impl CalcNode {
|
|||
let arguments = input
|
||||
.parse_comma_separated(|input| {
|
||||
Self::parse_argument(context, input, expected_unit)
|
||||
})?
|
||||
.into_boxed_slice();
|
||||
})?;
|
||||
|
||||
let op = match function {
|
||||
MathFunction::Min => MinMaxOp::Min,
|
||||
|
@ -406,7 +405,7 @@ impl CalcNode {
|
|||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
Ok(Self::MinMax(arguments, op))
|
||||
Ok(Self::MinMax(arguments.into(), op))
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -452,7 +451,7 @@ impl CalcNode {
|
|||
Ok(if sum.len() == 1 {
|
||||
sum.drain(..).next().unwrap()
|
||||
} else {
|
||||
Self::Sum(sum.into_boxed_slice())
|
||||
Self::Sum(sum.into_boxed_slice().into())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue