diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index f9cdd22dba2..951cb24c14a 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -1076,6 +1076,20 @@ fn static_assert() { +<%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')} + + + <%def name="define_ffi_struct_accessor(style_struct)"> #[no_mangle] #[allow(non_snake_case, unused_variables)]