From c591df7012ffa15480d1155b1e355fb4019d6272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 12 Jul 2017 21:18:40 +0200 Subject: [PATCH] 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 --- components/style/properties/gecko.mako.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 13f7b130841..53986e486cb 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -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; }