Use the cached IOService pointer when loading background images. Bug 123401,

r=dougt, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@143711 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2003-06-14 18:49:28 +00:00
parent 8163be4ab6
commit bd3093aabb
2 changed files with 6 additions and 2 deletions

View File

@ -1372,7 +1372,9 @@ nsPresContext::LoadImage(const nsString& aURL,
doc->GetBaseURL(getter_AddRefs(baseURI));
nsCOMPtr<nsIURI> uri;
NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI);
nsCOMPtr<nsIIOService> ioService;
GetIOService(getter_AddRefs(ioService));
NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI, ioService);
if (!loader) {
nsCOMPtr<nsIContent> content;

View File

@ -1372,7 +1372,9 @@ nsPresContext::LoadImage(const nsString& aURL,
doc->GetBaseURL(getter_AddRefs(baseURI));
nsCOMPtr<nsIURI> uri;
NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI);
nsCOMPtr<nsIIOService> ioService;
GetIOService(getter_AddRefs(ioService));
NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI, ioService);
if (!loader) {
nsCOMPtr<nsIContent> content;