Auto merge of #17691 - emilio:nondeter, r=Manishearth

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

<!-- 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/17691)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-07-12 13:10:12 -07:00 committed by GitHub
commit 55c3e6ed87

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;
}