Skip to content

Commit

Permalink
style: Don't write manual glue code for the order property.
Browse files Browse the repository at this point in the history
The default code works just as well.

Differential Revision: https://phabricator.services.mozilla.com/D40698
  • Loading branch information
emilio committed Aug 15, 2019
1 parent 3c346c3 commit 69191d8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions components/style/properties/gecko.mako.rs
Expand Up @@ -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">
Expand Down Expand Up @@ -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>

Expand Down

0 comments on commit 69191d8

Please sign in to comment.