From fe9d88326eb6707581ca071b7c05838d78ea1e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 18 Mar 2017 15:04:33 +0100 Subject: [PATCH 1/2] style: Fix alignment of the padding properties. --- .../style/properties/longhand/padding.mako.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 From 60d340d76fb9b0bdea20493f30c6e18d8cc68720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 18 Mar 2017 15:04:57 +0100 Subject: [PATCH 2/2] style: Remove outdated comment. --- components/style/values/specified/length.rs | 3 --- 1 file changed, 3 deletions(-) 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), }