diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index 50b4cd32dcc..55a04c0543d 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -665,9 +665,9 @@ void nsCSSRendering::PaintBackground(nsIPresContext& aPresContext, nsIFrameImageLoader* loader = nsnull; PRBool transparentBG = NS_STYLE_BG_COLOR_TRANSPARENT == (aColor.mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT); - nsresult rv = aPresContext.LoadImage(aColor.mBackgroundImage, transparentBG ? - nsnull : &aColor.mBackgroundColor, - aForFrame, PR_FALSE, loader); + nsresult rv = aPresContext.StartLoadImage(aColor.mBackgroundImage, transparentBG ? + nsnull : &aColor.mBackgroundColor, + aForFrame, PR_FALSE, loader); if ((NS_OK != rv) || (nsnull == loader) || (loader->GetImage(image), (nsnull == image))) { NS_IF_RELEASE(loader); diff --git a/mozilla/layout/html/style/src/nsCSSRendering.cpp b/mozilla/layout/html/style/src/nsCSSRendering.cpp index 50b4cd32dcc..55a04c0543d 100644 --- a/mozilla/layout/html/style/src/nsCSSRendering.cpp +++ b/mozilla/layout/html/style/src/nsCSSRendering.cpp @@ -665,9 +665,9 @@ void nsCSSRendering::PaintBackground(nsIPresContext& aPresContext, nsIFrameImageLoader* loader = nsnull; PRBool transparentBG = NS_STYLE_BG_COLOR_TRANSPARENT == (aColor.mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT); - nsresult rv = aPresContext.LoadImage(aColor.mBackgroundImage, transparentBG ? - nsnull : &aColor.mBackgroundColor, - aForFrame, PR_FALSE, loader); + nsresult rv = aPresContext.StartLoadImage(aColor.mBackgroundImage, transparentBG ? + nsnull : &aColor.mBackgroundColor, + aForFrame, PR_FALSE, loader); if ((NS_OK != rv) || (nsnull == loader) || (loader->GetImage(image), (nsnull == image))) { NS_IF_RELEASE(loader);