mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update layout component and helper to use LengthOrNormal
This commit is contained in:
parent
731706041d
commit
64a95f6410
3 changed files with 16 additions and 86 deletions
|
@ -2387,9 +2387,11 @@ clip-path
|
|||
${impl_simple_copy('column_count', 'mColumnCount')}
|
||||
|
||||
pub fn set_column_gap(&mut self, v: longhands::column_gap::computed_value::T) {
|
||||
match v.0 {
|
||||
Some(len) => self.gecko.mColumnGap.set(len),
|
||||
None => self.gecko.mColumnGap.set_value(CoordDataValue::Normal),
|
||||
use values::Either;
|
||||
|
||||
match v {
|
||||
Either::First(len) => self.gecko.mColumnGap.set(len),
|
||||
Either::Second(_normal) => self.gecko.mColumnGap.set_value(CoordDataValue::Normal),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue