Added background color to image loading member functions

This commit is contained in:
troy@netscape.com
1998-07-16 04:34:59 +00:00
parent f1e5308b98
commit aa3eead7ac
12 changed files with 62 additions and 23 deletions
+2
View File
@@ -103,6 +103,7 @@ nsresult
nsFrameImageLoader::Init(nsIPresContext* aPresContext,
nsIImageGroup* aGroup,
const nsString& aURL,
const nscolor* aBackgroundColor,
nsIFrame* aTargetFrame,
PRBool aNeedSizeUpdate)
{
@@ -131,6 +132,7 @@ nsFrameImageLoader::Init(nsIPresContext* aPresContext,
cp ? cp : "(null)", mTargetFrame, mImageLoadStatus));
// Start image load request
// XXX Use aBackgroundColor
nscolor bgcolor = NS_RGB(255,255,255);
mImageRequest = aGroup->GetImage(cp, this, &bgcolor, 0, 0, 0);
delete cp;