mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
style: Use the style system's LengthPercentage for shape-margin.
This also makes us pass a few WPTs because we stop losing precision when serializing the computed value. Differential Revision: https://phabricator.services.mozilla.com/D17738
This commit is contained in:
parent
15f503d000
commit
13e12d23f3
2 changed files with 2 additions and 1 deletions
|
@ -1396,7 +1396,7 @@ impl Clone for ${style_struct.gecko_struct_name} {
|
||||||
"MozLength": impl_style_coord,
|
"MozLength": impl_style_coord,
|
||||||
"MozScriptMinSize": impl_absolute_length,
|
"MozScriptMinSize": impl_absolute_length,
|
||||||
"MozScriptSizeMultiplier": impl_simple,
|
"MozScriptSizeMultiplier": impl_simple,
|
||||||
"NonNegativeLengthPercentage": impl_style_coord,
|
"NonNegativeLengthPercentage": impl_simple,
|
||||||
"NonNegativeNumber": impl_simple,
|
"NonNegativeNumber": impl_simple,
|
||||||
"Number": impl_simple,
|
"Number": impl_simple,
|
||||||
"Opacity": impl_simple,
|
"Opacity": impl_simple,
|
||||||
|
|
|
@ -174,6 +174,7 @@ impl SpecifiedValueInfo for CounterStyleOrNone {
|
||||||
ToComputedValue,
|
ToComputedValue,
|
||||||
ToCss,
|
ToCss,
|
||||||
)]
|
)]
|
||||||
|
#[repr(transparent)]
|
||||||
pub struct NonNegative<T>(pub T);
|
pub struct NonNegative<T>(pub T);
|
||||||
|
|
||||||
/// A wrapper of greater-than-or-equal-to-one values.
|
/// A wrapper of greater-than-or-equal-to-one values.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue