mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Fix causes of non-determinism in gecko_properties.rs.
We should sort out all the different ways we have to get sides and all those nasty loops, eventually... Bug: 1380327 Reviewed-By: Manishearth MozReview-Commit-ID: 4lAPEGeZaik
This commit is contained in:
parent
e24d81dbe7
commit
c591df7012
1 changed files with 2 additions and 2 deletions
|
@ -1173,7 +1173,7 @@ fn static_assert() {
|
||||||
BorderImageSlice {
|
BorderImageSlice {
|
||||||
offsets:
|
offsets:
|
||||||
NumberOrPercentageRect::from_gecko_rect(&self.gecko.mBorderImageSlice)
|
NumberOrPercentageRect::from_gecko_rect(&self.gecko.mBorderImageSlice)
|
||||||
.expect("mBorderImageSlice[${side.index}] could not convert to NumberOrPercentageRect"),
|
.expect("mBorderImageSlice[${side}] could not convert to NumberOrPercentageRect"),
|
||||||
fill: self.gecko.mBorderImageFill as u32 == NS_STYLE_BORDER_IMAGE_SLICE_FILL
|
fill: self.gecko.mBorderImageFill as u32 == NS_STYLE_BORDER_IMAGE_SLICE_FILL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1517,7 +1517,7 @@ fn static_assert() {
|
||||||
|
|
||||||
// NB: This is needed to correctly handling the initial value of
|
// NB: This is needed to correctly handling the initial value of
|
||||||
// outline-width when outline-style changes, see the
|
// outline-width when outline-style changes, see the
|
||||||
// update_border_${side} comment for more details.
|
// update_border_${side.ident} comment for more details.
|
||||||
self.gecko.mActualOutlineWidth = self.gecko.mOutlineWidth;
|
self.gecko.mActualOutlineWidth = self.gecko.mOutlineWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue