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:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user