mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
Added support for loading images as background URLs...
This commit is contained in:
parent
b727d5f187
commit
6545833099
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user