diff --git a/layout/base/nsCSSRendering.cpp b/layout/base/nsCSSRendering.cpp index f6dc8336dbf4..92ebc8af9846 100644 --- a/layout/base/nsCSSRendering.cpp +++ b/layout/base/nsCSSRendering.cpp @@ -3016,7 +3016,6 @@ PRInt16 adjust=0; void RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRInt16 aRadius[4],PRInt16 aNumTwipPerPix) { - PRBool doRound; nscoord x,y,width,height; int i; @@ -3042,6 +3041,7 @@ RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRIn // if we are drawing a circle mDoRound = PR_FALSE; if(aHeight==aWidth){ + PRBool doRound = PR_TRUE; for(i=0;i<4;i++){ if(mRoundness[i]<(aWidth>>1)){ doRound = PR_FALSE; diff --git a/layout/html/style/src/nsCSSRendering.cpp b/layout/html/style/src/nsCSSRendering.cpp index f6dc8336dbf4..92ebc8af9846 100644 --- a/layout/html/style/src/nsCSSRendering.cpp +++ b/layout/html/style/src/nsCSSRendering.cpp @@ -3016,7 +3016,6 @@ PRInt16 adjust=0; void RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRInt16 aRadius[4],PRInt16 aNumTwipPerPix) { - PRBool doRound; nscoord x,y,width,height; int i; @@ -3042,6 +3041,7 @@ RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRIn // if we are drawing a circle mDoRound = PR_FALSE; if(aHeight==aWidth){ + PRBool doRound = PR_TRUE; for(i=0;i<4;i++){ if(mRoundness[i]<(aWidth>>1)){ doRound = PR_FALSE;