зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #16023 - style: Fix some nits (from emilio:nits); r=emilio
I was looking at the code that used Length for #16015, and found these two. Source-Repo: https://github.com/servo/servo Source-Revision: 7fcba10614941d2c703c710227ec7367574e892f --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : b59615543c81e3c8b2eabd2320aec83a628dd47a
This commit is contained in:
Родитель
3d0620bc63
Коммит
9604c6d1c6
|
@ -13,11 +13,11 @@
|
|||
spec = "https://drafts.csswg.org/css-logical-props/#propdef-padding-%s" % side[1]
|
||||
%>
|
||||
${helpers.predefined_type("padding-%s" % side[0], "LengthOrPercentage",
|
||||
"computed::LengthOrPercentage::Length(Au(0))",
|
||||
"parse_non_negative",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
||||
needs_context=False,
|
||||
animatable=True,
|
||||
logical = side[1],
|
||||
spec = spec)}
|
||||
"computed::LengthOrPercentage::Length(Au(0))",
|
||||
"parse_non_negative",
|
||||
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
||||
needs_context=False,
|
||||
animatable=True,
|
||||
logical = side[1],
|
||||
spec = spec)}
|
||||
% endfor
|
||||
|
|
|
@ -369,9 +369,6 @@ pub enum Length {
|
|||
/// A calc expression.
|
||||
///
|
||||
/// 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),
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче