mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
commit
0080a14859
1 changed files with 14 additions and 0 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue