Support column-width property in geckolib

This commit is contained in:
Manish Goregaokar 2016-06-23 15:25:14 +05:30
parent 44b0bddf41
commit e3d5f4d09a
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98

View file

@ -1076,6 +1076,20 @@ fn static_assert() {
</%self:impl_trait>
<%self:impl_trait style_struct_name="Column"
skip_longhands="column-width">
fn set_column_width(&mut self, v: longhands::column_width::computed_value::T) {
match v.0 {
Some(au) => self.gecko.mColumnWidth.set_coord(au),
None => self.gecko.mColumnWidth.set_auto(),
}
}
${impl_coord_copy('column_width', 'mColumnWidth')}
</%self:impl_trait>
<%def name="define_ffi_struct_accessor(style_struct)">
#[no_mangle]
#[allow(non_snake_case, unused_variables)]