mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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
This commit is contained in:
parent
3c346c35d2
commit
69191d8b8c
1 changed files with 1 additions and 11 deletions
|
@ -973,7 +973,7 @@ fn static_assert() {
|
||||||
|
|
||||||
<% skip_position_longhands = " ".join(x.ident for x in SIDES) %>
|
<% skip_position_longhands = " ".join(x.ident for x in SIDES) %>
|
||||||
<%self:impl_trait style_struct_name="Position"
|
<%self:impl_trait style_struct_name="Position"
|
||||||
skip_longhands="${skip_position_longhands} order
|
skip_longhands="${skip_position_longhands}
|
||||||
align-content justify-content align-self
|
align-content justify-content align-self
|
||||||
justify-self align-items justify-items
|
justify-self align-items justify-items
|
||||||
grid-auto-flow">
|
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")}
|
${impl_simple_type_with_conversion("grid_auto_flow")}
|
||||||
</%self:impl_trait>
|
</%self:impl_trait>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue