Bug 1516454 - Add some braces on a CLOSED TREE. r=me
☠☠ backed out by 987a62667969 ☠ ☠
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 25 Feb 2019 13:32:57 -0800
changeset 518864 a460a4d0a66cd3cbd1d3e6c92e6c6ac5c831e205
parent 518863 fae88bb4c6da6cb2c555b8271de4860b13e4378f
child 518865 3a11dd127e2c2384564cf162cc73b31c3e525e35
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1516454
milestone67.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 1516454 - Add some braces on a CLOSED TREE. r=me
layout/style/nsStyleStruct.cpp
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -239,17 +239,17 @@ nsChangeHint nsStylePadding::CalcDiffere
 
 static nscoord TwipsPerPixel(const Document& aDocument) {
   auto* pc = aDocument.GetPresContext();
   return pc ? pc->AppUnitsPerDevPixel() : mozilla::AppUnitsPerCSSPixel();
 }
 
 static inline BorderRadius ZeroBorderRadius() {
   auto zero = LengthPercentage::Zero();
-  return {{zero, zero}, {zero, zero}, {zero, zero}, {zero, zero}};
+  return {{{zero, zero}}}, {{zero, zero}}, {{zero, zero}}, {{zero, zero}}};
 }
 
 nsStyleBorder::nsStyleBorder(const Document& aDocument)
     : mBorderRadius(ZeroBorderRadius())
     , mBorderImageOutset(
           StyleRectWithAllSides(StyleNonNegativeLengthOrNumber::Number(0.))),
       mBorderImageSlice(
           {StyleRectWithAllSides(StyleNumberOrPercentage::Percentage({1.})),