it was incorrctly painting both images

b=48156 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76296 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-08-14 22:01:05 +00:00
parent e32a3a2ff9
commit 4177506b45
2 changed files with 6 additions and 12 deletions

View File

@@ -662,15 +662,12 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
}
}
if (lowImage != nsnull && lowSrcLinesLoaded > 0) {
//inner.height = lowSrcLinesLoaded;
if (image != nsnull && imgSrcLinesLoaded > 0) {
aRenderingContext.DrawImage(image, inner);
} else if (lowImage != nsnull && lowSrcLinesLoaded > 0) {
aRenderingContext.DrawImage(lowImage, inner);
}
if (image != nsnull && imgSrcLinesLoaded > 0) {
//inner.height = imgSrcLinesLoaded;
aRenderingContext.DrawImage(image, inner);
}
}
nsImageMap* map = GetImageMap();

View File

@@ -662,15 +662,12 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
}
}
if (lowImage != nsnull && lowSrcLinesLoaded > 0) {
//inner.height = lowSrcLinesLoaded;
if (image != nsnull && imgSrcLinesLoaded > 0) {
aRenderingContext.DrawImage(image, inner);
} else if (lowImage != nsnull && lowSrcLinesLoaded > 0) {
aRenderingContext.DrawImage(lowImage, inner);
}
if (image != nsnull && imgSrcLinesLoaded > 0) {
//inner.height = imgSrcLinesLoaded;
aRenderingContext.DrawImage(image, inner);
}
}
nsImageMap* map = GetImageMap();