Auto merge of #13157 - Manishearth:background-size, r=emilio

stylo: support background-size and corner gradients

Forgot to fix this in the midst of all other things fixed in #12945

<s>(not yet tested, need to figure out how to test bg-size with gradients)</s>

r? @bholley

<!-- 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/13157)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-09-04 03:45:05 -05:00 committed by GitHub
commit c46003eb05
3 changed files with 133 additions and 6 deletions

View file

@ -40,6 +40,16 @@ impl CoordDataMut for nsStyleCoord {
}
}
impl nsStyleCoord_CalcValue {
pub fn new() -> Self {
nsStyleCoord_CalcValue {
mLength: 0,
mPercent: 0.0,
mHasPercent: false,
}
}
}
impl nsStyleSides {
#[inline]
pub fn data_at(&self, index: usize) -> SidesData {