mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #16023 - emilio:nits, r=emilio
style: Fix some nits I was looking at the code that used Length for #16015, and found these two. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16023) <!-- Reviewable:end -->
This commit is contained in:
commit
7fcba10614
2 changed files with 7 additions and 10 deletions
|
@ -13,11 +13,11 @@
|
||||||
spec = "https://drafts.csswg.org/css-logical-props/#propdef-padding-%s" % side[1]
|
spec = "https://drafts.csswg.org/css-logical-props/#propdef-padding-%s" % side[1]
|
||||||
%>
|
%>
|
||||||
${helpers.predefined_type("padding-%s" % side[0], "LengthOrPercentage",
|
${helpers.predefined_type("padding-%s" % side[0], "LengthOrPercentage",
|
||||||
"computed::LengthOrPercentage::Length(Au(0))",
|
"computed::LengthOrPercentage::Length(Au(0))",
|
||||||
"parse_non_negative",
|
"parse_non_negative",
|
||||||
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
||||||
needs_context=False,
|
needs_context=False,
|
||||||
animatable=True,
|
animatable=True,
|
||||||
logical = side[1],
|
logical = side[1],
|
||||||
spec = spec)}
|
spec = spec)}
|
||||||
% endfor
|
% endfor
|
||||||
|
|
|
@ -369,9 +369,6 @@ pub enum Length {
|
||||||
/// A calc expression.
|
/// A calc expression.
|
||||||
///
|
///
|
||||||
/// https://drafts.csswg.org/css-values/#calc-notation
|
/// https://drafts.csswg.org/css-values/#calc-notation
|
||||||
///
|
|
||||||
/// TODO(emilio): We have more `Calc` variants around, we should only use
|
|
||||||
/// one.
|
|
||||||
Calc(Box<CalcLengthOrPercentage>, AllowedNumericType),
|
Calc(Box<CalcLengthOrPercentage>, AllowedNumericType),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue