From 14c7e133ade82a463277f788c9839f33e6d8dcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 21 Aug 2019 18:35:31 +0000 Subject: [PATCH] style: Avoid some signed -> unsigned conversions for box-ordinal-group. This is consistent with the `order` property anyhow, and allows to simplify some code. Negatives are still not parsed, but rust uses a similar representation for all CSS values and so should C++. Differential Revision: https://phabricator.services.mozilla.com/D42912 --- components/style/properties/gecko.mako.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 4fc4615020a..e8f2c521a6f 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -3040,19 +3040,7 @@ clip-path ${impl_simple_type_with_conversion("_moz_force_broken_image_icon", "mForceBrokenImageIcon")} -<%self:impl_trait style_struct_name="XUL" - skip_longhands="-moz-box-ordinal-group"> - #[allow(non_snake_case)] - pub fn set__moz_box_ordinal_group(&mut self, v: i32) { - self.gecko.mBoxOrdinal = v as u32; - } - - ${impl_simple_copy("_moz_box_ordinal_group", "mBoxOrdinal")} - - #[allow(non_snake_case)] - pub fn clone__moz_box_ordinal_group(&self) -> i32 { - self.gecko.mBoxOrdinal as i32 - } +<%self:impl_trait style_struct_name="XUL"> % for style_struct in data.style_structs: