From bd3093aabb033ce0983fe72ecc8a27697918ab8e Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sat, 14 Jun 2003 18:49:28 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsPresContext.cpp | 4 +++- mozilla/layout/base/src/nsPresContext.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsPresContext.cpp b/mozilla/layout/base/nsPresContext.cpp index 6a6761aa9c9..804dc7d747a 100644 --- a/mozilla/layout/base/nsPresContext.cpp +++ b/mozilla/layout/base/nsPresContext.cpp @@ -1372,7 +1372,9 @@ nsPresContext::LoadImage(const nsString& aURL, doc->GetBaseURL(getter_AddRefs(baseURI)); nsCOMPtr uri; - NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI); + nsCOMPtr ioService; + GetIOService(getter_AddRefs(ioService)); + NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI, ioService); if (!loader) { nsCOMPtr content; diff --git a/mozilla/layout/base/src/nsPresContext.cpp b/mozilla/layout/base/src/nsPresContext.cpp index 6a6761aa9c9..804dc7d747a 100644 --- a/mozilla/layout/base/src/nsPresContext.cpp +++ b/mozilla/layout/base/src/nsPresContext.cpp @@ -1372,7 +1372,9 @@ nsPresContext::LoadImage(const nsString& aURL, doc->GetBaseURL(getter_AddRefs(baseURI)); nsCOMPtr uri; - NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI); + nsCOMPtr ioService; + GetIOService(getter_AddRefs(ioService)); + NS_NewURI(getter_AddRefs(uri), aURL, nsnull, baseURI, ioService); if (!loader) { nsCOMPtr content;