mirror of
https://github.com/servo/servo.git
synced 2025-10-02 01:29:15 +01:00
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:
commit
c46003eb05
3 changed files with 133 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue