mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Simplify -x-span property.
Differential Revision: https://phabricator.services.mozilla.com/D42914
This commit is contained in:
parent
432b417d98
commit
ee106992e1
6 changed files with 3 additions and 61 deletions
|
@ -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">
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue