mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix servo build.
This commit is contained in:
parent
1cb235c81a
commit
6daebcc5df
18 changed files with 210 additions and 170 deletions
|
@ -33,7 +33,7 @@ use style::logical_geometry::LogicalSize;
|
|||
use style::properties::style_structs::Background;
|
||||
use style::properties::ComputedValues;
|
||||
use style::servo::restyle_damage::ServoRestyleDamage;
|
||||
use style::values::computed::LengthPercentageOrAuto;
|
||||
use style::values::computed::NonNegativeLengthPercentageOrAuto;
|
||||
use style::values::CSSFloat;
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
@ -301,15 +301,15 @@ impl Flow for TableFlow {
|
|||
self.column_intrinsic_inline_sizes
|
||||
.push(ColumnIntrinsicInlineSize {
|
||||
minimum_length: match *specified_inline_size {
|
||||
LengthPercentageOrAuto::Auto => Au(0),
|
||||
LengthPercentageOrAuto::LengthPercentage(ref lp) => {
|
||||
NonNegativeLengthPercentageOrAuto::Auto => Au(0),
|
||||
NonNegativeLengthPercentageOrAuto::LengthPercentage(ref lp) => {
|
||||
lp.maybe_to_used_value(None).unwrap_or(Au(0))
|
||||
},
|
||||
},
|
||||
percentage: match *specified_inline_size {
|
||||
LengthPercentageOrAuto::Auto => 0.0,
|
||||
LengthPercentageOrAuto::LengthPercentage(ref lp) => {
|
||||
lp.as_percentage().map_or(0.0, |p| p.0)
|
||||
NonNegativeLengthPercentageOrAuto::Auto => 0.0,
|
||||
NonNegativeLengthPercentageOrAuto::LengthPercentage(ref lp) => {
|
||||
lp.0.as_percentage().map_or(0.0, |p| p.0)
|
||||
},
|
||||
},
|
||||
preferred: Au(0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue