style: Simplify -x-span property.

Differential Revision: https://phabricator.services.mozilla.com/D42914
This commit is contained in:
Emilio Cobos Álvarez 2019-08-21 20:02:13 +00:00
parent 432b417d98
commit ee106992e1
6 changed files with 3 additions and 61 deletions

View file

@ -2296,20 +2296,7 @@ fn static_assert() {
</%self:impl_trait>
<%self:impl_trait style_struct_name="Table" skip_longhands="-x-span">
#[allow(non_snake_case)]
pub fn set__x_span(&mut self, v: longhands::_x_span::computed_value::T) {
self.gecko.mSpan = v.0
}
#[allow(non_snake_case)]
pub fn clone__x_span(&self) -> longhands::_x_span::computed_value::T {
longhands::_x_span::computed_value::T(
self.gecko.mSpan
)
}
${impl_simple_copy('_x_span', 'mSpan')}
<%self:impl_trait style_struct_name="Table">
</%self:impl_trait>
<%self:impl_trait style_struct_name="Effects" skip_longhands="clip">

View file

@ -18,8 +18,8 @@ ${helpers.single_keyword(
${helpers.predefined_type(
"-x-span",
"XSpan",
"computed::XSpan(1)",
"Integer",
"1",
engines="gecko",
spec="Internal-only (for `<col span>` pres attr)",
animation_value_type="none",