Auto merge of #17906 - emilio:calc-bgsize, r=hiro,birtles

style: Don't unconditionally generate Calc values when converting background-size from Gecko.

Bug: 1385140
MozReview-Commit-ID: ERwq50WSvLV

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17906)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-07-29 06:41:27 -05:00 committed by GitHub
commit 6b320eaad3
2 changed files with 11 additions and 1 deletions

View file

@ -3446,7 +3446,7 @@ fn static_assert() {
LengthOrPercentageOrAuto::Auto
} else {
debug_assert!(ty == DimensionType::eLengthPercentage as u8);
LengthOrPercentageOrAuto::Calc(value.into())
value.into()
}
}