Skip to content

Commit

Permalink
Bug 1571537 - Don't write manual glue code for the order property. r=…
Browse files Browse the repository at this point in the history
…boris

The default code works just as well.

Differential Revision: https://phabricator.services.mozilla.com/D40698
  • Loading branch information
emilio committed Aug 6, 2019
1 parent 01b1ce1 commit 01aaa29
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions servo/components/style/properties/gecko.mako.rs
Original file line number Diff line number Diff line change
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 01aaa29

Please sign in to comment.