Bug 973187: Fix typo (checking mRadiusX twice and not checking mRadiusY) in nsStyleGradient::HasCalc(). r=dbaron
authorMaks Naumov <maksqwe1@ukr.net>
Sun, 16 Feb 2014 16:05:10 -0800
changeset 169446 c5d74728a7abbf741b4eff6115ea800e49d5380d
parent 169445 e8c41ecfc04526f50ce7a5453d925d40b50d87c1
child 169447 4d0f0eabea2651c605171c1ca6ece8c243503fef
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersdbaron
bugs973187
milestone30.0a1
Bug 973187: Fix typo (checking mRadiusX twice and not checking mRadiusY) in nsStyleGradient::HasCalc(). r=dbaron
layout/style/nsStyleStruct.cpp
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -1538,17 +1538,17 @@ nsStyleGradient::IsOpaque()
 bool
 nsStyleGradient::HasCalc()
 {
   for (uint32_t i = 0; i < mStops.Length(); i++) {
     if (mStops[i].mLocation.IsCalcUnit())
       return true;
   }
   return mBgPosX.IsCalcUnit() || mBgPosY.IsCalcUnit() || mAngle.IsCalcUnit() ||
-         mRadiusX.IsCalcUnit() || mRadiusX.IsCalcUnit();
+         mRadiusX.IsCalcUnit() || mRadiusY.IsCalcUnit();
 }
 
 // --------------------
 // nsStyleImage
 //
 
 nsStyleImage::nsStyleImage()
   : mType(eStyleImageType_Null)