Bug 1517511 - followup: fix servo build.
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 07 Jan 2019 16:46:29 +0100
changeset 452724 6b7071abf6eae6ec3c03f8f8bf5cc4f49cadfd5a
parent 452723 6a7b315a82b2ebc9402166d886fa8c93d805df10
child 452725 5c8bcb1cf3e7c6f9bca3e8afb582ce81b8fed361
push id75554
push useremilio@crisal.io
push dateMon, 07 Jan 2019 15:46:54 +0000
treeherderautoland@6b7071abf6ea [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",
         )}