Bug 1294015 - Identical code for different branches in nsCSSRenderingBorders.cpp r=arai
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 10 Aug 2016 14:46:25 +0200
changeset 308895 c2463be000652c901f160910b4075d081b6c664f
parent 308812 b83235ed0ea5a46e58ee9e6f402171bf908ac25f
child 308896 a0c1998f35d2434a29bfedd069569fc75076fcf4
push id20288
push userkwierso@gmail.com
push dateWed, 10 Aug 2016 23:55:56 +0000
treeherderfx-team@c50708c38f81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1294015
milestone51.0a1
Bug 1294015 - Identical code for different branches in nsCSSRenderingBorders.cpp r=arai MozReview-Commit-ID: DNwiCkUhWt6
layout/base/nsCSSRenderingBorders.cpp
--- a/layout/base/nsCSSRenderingBorders.cpp
+++ b/layout/base/nsCSSRenderingBorders.cpp
@@ -762,23 +762,18 @@ nsCSSBorderRenderer::GetStraightBorderPo
         // | ####################### |
         // |  #####################  |
         // |   ###################   |
         // |     ###############     |
         // |         #######         |
         // +-------------------------+----
         // |                         |
         // |                         |
-        if (isHorizontal) {
-          P.x += signs[0] * borderWidth / 2.0f;
-          P.y += signs[1] * borderWidth / 2.0f;
-        } else {
-          P.x += signs[0] * borderWidth / 2.0f;
-          P.y += signs[1] * borderWidth / 2.0f;
-        }
+        P.x += signs[0] * borderWidth / 2.0f;
+        P.y += signs[1] * borderWidth / 2.0f;
       } else {
         // Two dots are drawn separately.
         //
         //    borderWidth * 1.5
         //   |<------------>|
         //   |              |
         //   |radius.width  |
         //   |<----->|      |