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:
Emilio Cobos Álvarez 2017-07-12 21:18:40 +02:00
parent e24d81dbe7
commit c591df7012
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1173,7 +1173,7 @@ fn static_assert() {
BorderImageSlice {
offsets:
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
}
}
@ -1517,7 +1517,7 @@ fn static_assert() {
// NB: This is needed to correctly handling the initial value of
// 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;
}