stylo: support background-size

This commit is contained in:
Manish Goregaokar 2016-09-01 19:21:44 +05:30
parent f787e8ed65
commit 04c5d05727
3 changed files with 107 additions and 2 deletions

View file

@ -29,6 +29,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 {