Auto merge of #11830 - Manishearth:stylo-column-width, r=emilio

Support column-width property in geckolib

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11830)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-23 06:55:15 -05:00 committed by GitHub
commit 0080a14859

View file

@ -1076,6 +1076,20 @@ fn static_assert() {
</%self:impl_trait> </%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)"> <%def name="define_ffi_struct_accessor(style_struct)">
#[no_mangle] #[no_mangle]
#[allow(non_snake_case, unused_variables)] #[allow(non_snake_case, unused_variables)]