Bug 1517511 - followup: fix servo build.
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 07 Jan 2019 16:46:29 +0100
changeset 452713 6b7071abf6eae6ec3c03f8f8bf5cc4f49cadfd5a
parent 452712 6a7b315a82b2ebc9402166d886fa8c93d805df10
child 452714 5c8bcb1cf3e7c6f9bca3e8afb582ce81b8fed361
push id35328
push userncsoregi@mozilla.com
push dateMon, 07 Jan 2019 21:46:20 +0000
treeherdermozilla-central@14d8f03b496c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1517511
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1517511 - followup: fix servo build.
servo/components/style/properties/longhands/position.mako.rs
--- a/servo/components/style/properties/longhands/position.mako.rs
+++ b/servo/components/style/properties/longhands/position.mako.rs
@@ -292,17 +292,17 @@ macro_rules! impl_align_conversions {
             logical_group="size",
             allow_quirks=not logical,
             animation_value_type="ComputedValue", logical = logical,
             servo_restyle_damage="reflow",
         )}
         ${helpers.predefined_type(
             "min-%s" % size,
             "LengthPercentage",
-            "computed::LengthPercentage::Length(computed::Length::new(0.))",
+            "computed::LengthPercentage::zero()",
             "parse_non_negative",
             spec=spec % ("min-%s" % size),
             logical_group="min-size",
             animation_value_type="ComputedValue",
             logical=logical,
             allow_quirks=not logical,
             servo_restyle_damage="reflow",
         )}