style: fix tidy issues and update test expectations.

This commit is contained in:
Emilio Cobos Álvarez 2018-10-09 20:27:38 +02:00
parent 912d65a392
commit f287691f2e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 3 additions and 56 deletions

View file

@ -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(