diff --git a/components/style/properties/longhand/padding.mako.rs b/components/style/properties/longhand/padding.mako.rs index 64ad713d616..a25eabd240f 100644 --- a/components/style/properties/longhand/padding.mako.rs +++ b/components/style/properties/longhand/padding.mako.rs @@ -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 diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs index 1c3f7948f47..d530680660a 100644 --- a/components/style/values/specified/length.rs +++ b/components/style/values/specified/length.rs @@ -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, AllowedNumericType), }