Added support for loading images as background URLs...

This commit is contained in:
rpotts%netscape.com 1998-10-10 04:35:59 +00:00
parent b727d5f187
commit 6545833099

View File

@ -23,6 +23,7 @@
#include "ilIURL.h"
#include "nsIURL.h"
#include "nsIURLGroup.h"
#include "nsILoadAttribs.h"
#include "nsString.h"
#include "il_strm.h"
@ -158,6 +159,19 @@ ImageURLImpl::GetExpires()
void
ImageURLImpl::SetBackgroundLoad(PRBool aBgload)
{
nsILoadAttribs* loadAttributes;
if (nsnull != mURL) {
loadAttributes = mURL->GetLoadAttribs();
if (nsnull != loadAttributes) {
if (aBgload) {
loadAttributes->SetLoadType(nsURLLoadBackground);
} else {
loadAttributes->SetLoadType(nsURLLoadNormal);
}
NS_RELEASE(loadAttributes);
}
}
}
int