From e3d5f4d09a0c5cebe9360ae40213703244618376 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Thu, 23 Jun 2016 15:25:14 +0530 Subject: [PATCH] Support column-width property in geckolib --- ports/geckolib/properties.mako.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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)]