Bug 477157 - Annotate one more test as passing, and fix build in older compilers.
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 10 Jun 2020 15:26:11 +0200
changeset 598935 04543b8ded5089fd04678057478ed96b28021ec1
parent 598934 0edbbe70c420684f0ae9c70da93f8b68db3cba60
child 598936 9f3871bb562a7ad2dd56132fb627d57d12044de6
push id13310
push userffxbld-merge
push dateMon, 29 Jun 2020 14:50:06 +0000
treeherdermozilla-beta@15a59a0afa5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs477157
milestone79.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 477157 - Annotate one more test as passing, and fix build in older compilers. MANUAL PUSH: minor orange cleanup on a CLOSED TREE
layout/painting/nsCSSRendering.cpp
testing/web-platform/meta/css/css-ui/parsing/outline-width-computed.html.ini
--- a/layout/painting/nsCSSRendering.cpp
+++ b/layout/painting/nsCSSRendering.cpp
@@ -752,20 +752,20 @@ ImgDrawResult nsCSSRendering::CreateWebR
 // to device pixels. Note that non-zero border widths have been made at least
 // one device pixel wide already at computed value time by round_border_width.
 static Float SnapBorderToDevPixels(nscoord aWidth, int32_t aAppUnitsPerPixel) {
   return Float(aWidth / aAppUnitsPerPixel);
 }
 
 static std::array<Float, 4> SnapBorderToDevPixels(const nsMargin& aBorder,
                                                   int32_t aAppUnitsPerPixel) {
-  return {SnapBorderToDevPixels(aBorder.top, aAppUnitsPerPixel),
-          SnapBorderToDevPixels(aBorder.right, aAppUnitsPerPixel),
-          SnapBorderToDevPixels(aBorder.bottom, aAppUnitsPerPixel),
-          SnapBorderToDevPixels(aBorder.left, aAppUnitsPerPixel)};
+  return {{SnapBorderToDevPixels(aBorder.top, aAppUnitsPerPixel),
+           SnapBorderToDevPixels(aBorder.right, aAppUnitsPerPixel),
+           SnapBorderToDevPixels(aBorder.bottom, aAppUnitsPerPixel),
+           SnapBorderToDevPixels(aBorder.left, aAppUnitsPerPixel)}};
 }
 
 static nsCSSBorderRenderer ConstructBorderRenderer(
     nsPresContext* aPresContext, ComputedStyle* aStyle, DrawTarget* aDrawTarget,
     nsIFrame* aForFrame, const nsRect& aDirtyRect, const nsRect& aBorderArea,
     const nsStyleBorder& aStyleBorder, Sides aSkipSides, bool* aNeedsClip) {
   nsMargin border = aStyleBorder.GetComputedBorder();
 
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-ui/parsing/outline-width-computed.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[outline-width-computed.html]
-  [Property outline-width value '2.5px']
-    expected: FAIL
-