From 69191d8b8ce9272a3a413ff5c286cf3225aa9d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 6 Aug 2019 12:08:47 +0000 Subject: [PATCH] style: Don't write manual glue code for the order property. The default code works just as well. Differential Revision: https://phabricator.services.mozilla.com/D40698 --- components/style/properties/gecko.mako.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 9f8aa772d31..068ddfae967 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -973,7 +973,7 @@ fn static_assert() { <% skip_position_longhands = " ".join(x.ident for x in SIDES) %> <%self:impl_trait style_struct_name="Position" - skip_longhands="${skip_position_longhands} order + skip_longhands="${skip_position_longhands} align-content justify-content align-self justify-self align-items justify-items grid-auto-flow"> @@ -1014,16 +1014,6 @@ fn static_assert() { } } - pub fn set_order(&mut self, v: longhands::order::computed_value::T) { - self.gecko.mOrder = v; - } - - pub fn clone_order(&self) -> longhands::order::computed_value::T { - self.gecko.mOrder - } - - ${impl_simple_copy('order', 'mOrder')} - ${impl_simple_type_with_conversion("grid_auto_flow")}