Bug 1571537 - Don't write manual glue code for the order property. r=boris

The default code works just as well.

Differential Revision: https://phabricator.services.mozilla.com/D40698

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-08-06 12:08:47 +00:00
parent e54a9f9849
commit 9e60b0219a

View File

@ -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")}
</%self:impl_trait>