mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
stylo: support background-size
This commit is contained in:
parent
f787e8ed65
commit
04c5d05727
3 changed files with 107 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue