Bug 805831 - Followup: Fix compiler warning.
authorBas Schouten <bschouten@mozilla.com>
Sat, 27 Oct 2012 16:48:37 +0200
changeset 111742 08c38354ae7c243a247876c8688c26b979ecb4d2
parent 111741 ea35621ef12ae0d033e3cc3ab95f7495fef52a87
child 111743 e2c6b346d1dfec97d9a1fef800ed97169d304942
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs805831
milestone19.0a1
Bug 805831 - Followup: Fix compiler warning.
layout/base/nsCSSRenderingBorders.cpp
--- a/layout/base/nsCSSRenderingBorders.cpp
+++ b/layout/base/nsCSSRenderingBorders.cpp
@@ -1287,19 +1287,16 @@ nsCSSBorderRenderer::CreateCornerGradien
     mBorderWidths[cornerHeight[aCorner]] * gradientCoeff[aCorner].a;
   pat1.y = cornerOrigin.y +
     mBorderWidths[cornerWidth[aCorner]]  * gradientCoeff[aCorner].b;
   pat2.x = cornerOrigin.x -
     mBorderWidths[cornerHeight[aCorner]] * gradientCoeff[aCorner].a;
   pat2.y = cornerOrigin.y -
     mBorderWidths[cornerWidth[aCorner]]  * gradientCoeff[aCorner].b;
 
-  float gradientOffset = 0.25 / sqrt(pow(mBorderWidths[cornerHeight[aCorner]], 2) +
-                                 pow(mBorderWidths[cornerHeight[aCorner]], 2));
-
   aPoint1 = Point(pat1.x, pat1.y);
   aPoint2 = Point(pat2.x, pat2.y);
 
   Color firstColor = ToColor(aFirstColor);
   Color secondColor = ToColor(aSecondColor);
 
   BorderGradientCacheData *data =
     gBorderGradientCache->Lookup(firstColor, secondColor, aDT->GetType());