Changed it so that if there's a NULL URL then we set the mLoadImageFailed
flag and don't try and load the broken image URL. Only on Windows for now until Mac and Unix support the image icons git-svn-id: svn://10.0.0.236/trunk@14596 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
867d43cb50
commit
ae5da1b1b1
@ -145,7 +145,12 @@ nsHTMLImageLoader::StartLoadImage(nsIPresContext* aPresContext,
|
|||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsAutoString src;
|
nsAutoString src;
|
||||||
if (mLoadImageFailed || (nsnull == mURLSpec)) {
|
if (mLoadImageFailed || (nsnull == mURLSpec)) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
mLoadImageFailed = PR_TRUE;
|
||||||
|
return NS_OK;
|
||||||
|
#else
|
||||||
src.Append(BROKEN_IMAGE_URL);
|
src.Append(BROKEN_IMAGE_URL);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
nsAutoString baseURL;
|
nsAutoString baseURL;
|
||||||
if (nsnull != mBaseHREF) {
|
if (nsnull != mBaseHREF) {
|
||||||
|
|||||||
@ -145,7 +145,12 @@ nsHTMLImageLoader::StartLoadImage(nsIPresContext* aPresContext,
|
|||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsAutoString src;
|
nsAutoString src;
|
||||||
if (mLoadImageFailed || (nsnull == mURLSpec)) {
|
if (mLoadImageFailed || (nsnull == mURLSpec)) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
mLoadImageFailed = PR_TRUE;
|
||||||
|
return NS_OK;
|
||||||
|
#else
|
||||||
src.Append(BROKEN_IMAGE_URL);
|
src.Append(BROKEN_IMAGE_URL);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
nsAutoString baseURL;
|
nsAutoString baseURL;
|
||||||
if (nsnull != mBaseHREF) {
|
if (nsnull != mBaseHREF) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user