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:
parent
8163be4ab6
commit
bd3093aabb
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user