mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Don't unconditionally generate Calc values when converting background-size from Gecko.
Bug: 1385140 MozReview-Commit-ID: ERwq50WSvLV
This commit is contained in:
parent
3ab6b1cf8f
commit
23369aee6d
2 changed files with 11 additions and 1 deletions
|
@ -3434,7 +3434,7 @@ fn static_assert() {
|
|||
LengthOrPercentageOrAuto::Auto
|
||||
} else {
|
||||
debug_assert!(ty == DimensionType::eLengthPercentage as u8);
|
||||
LengthOrPercentageOrAuto::Calc(value.into())
|
||||
value.into()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue