Fix infinite loop when |shrinkage| goes below zero. Blocker for mach-o

build. r=dbaron/sr=blake. bug#116240
This commit is contained in:
pinkerton%netscape.com 2001-12-20 18:02:43 +00:00
parent 1dcd7423ca
commit 4c5dccf906
2 changed files with 2 additions and 2 deletions

View File

@ -1799,7 +1799,7 @@ void nsCSSRendering::DrawCompositeSide(nsIRenderingContext& aRenderingContext,
endRadius = aBorderRadii[3];
}
while (shrinkage) {
while (shrinkage > 0) {
nscoord xshrink = 0;
nscoord yshrink = 0;
nscoord widthshrink = 0;

View File

@ -1799,7 +1799,7 @@ void nsCSSRendering::DrawCompositeSide(nsIRenderingContext& aRenderingContext,
endRadius = aBorderRadii[3];
}
while (shrinkage) {
while (shrinkage > 0) {
nscoord xshrink = 0;
nscoord yshrink = 0;
nscoord widthshrink = 0;