mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: fix tidy issues and update test expectations.
This commit is contained in:
parent
912d65a392
commit
f287691f2e
7 changed files with 3 additions and 56 deletions
|
@ -110,8 +110,8 @@ impl From<nsStyleCoord_CalcValue> for LengthOrPercentageOrAuto {
|
|||
// disappear as we move more stuff to cbindgen.
|
||||
impl From<nsStyleCoord_CalcValue> for NonNegativeLengthOrPercentageOrAuto {
|
||||
fn from(other: nsStyleCoord_CalcValue) -> Self {
|
||||
use values::generics::NonNegative;
|
||||
use style_traits::values::specified::AllowedNumericType;
|
||||
use values::generics::NonNegative;
|
||||
NonNegative(if other.mLength < 0 || other.mPercent < 0. {
|
||||
LengthOrPercentageOrAuto::Calc(
|
||||
CalcLengthOrPercentage::with_clamping_mode(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue