зеркало из https://github.com/mozilla/gecko-dev.git
More random flailing to fix gcc-2.7.2.3
This commit is contained in:
Родитель
1260e2100c
Коммит
dd7c188516
|
@ -1996,8 +1996,14 @@ nsXULDocument::CreateFromPrototype(const char* aCommand,
|
|||
getter_AddRefs(loadgroup));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIStreamObserver> loader;
|
||||
rv = nsXULDocument::CachedChromeLoader::Create(this, getter_AddRefs(loader));
|
||||
CachedChromeLoader* loader = new CachedChromeLoader(this);
|
||||
if (! loader)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(loader);
|
||||
nsCOMPtr<nsIStreamObserver> anchor = do_QueryInterface(loader, &rv);
|
||||
NS_RELEASE(loader);
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = loadgroup->Init(loader);
|
||||
|
@ -5559,18 +5565,6 @@ nsXULDocument::CachedChromeLoader::~CachedChromeLoader()
|
|||
NS_RELEASE(mDocument);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULDocument::CachedChromeLoader::Create(nsXULDocument* aDocument, nsIStreamObserver** aResult)
|
||||
{
|
||||
CachedChromeLoader* loader = new CachedChromeLoader(aDocument);
|
||||
if (! loader)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
*aResult = loader;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(nsXULDocument::CachedChromeLoader);
|
||||
NS_IMPL_RELEASE(nsXULDocument::CachedChromeLoader);
|
||||
|
||||
|
|
|
@ -752,14 +752,12 @@ protected:
|
|||
class CachedChromeLoader : public nsIStreamObserver
|
||||
{
|
||||
protected:
|
||||
CachedChromeLoader(nsXULDocument* aDocument);
|
||||
virtual ~CachedChromeLoader();
|
||||
|
||||
nsXULDocument* mDocument;
|
||||
PRBool mLoading;
|
||||
|
||||
public:
|
||||
static nsresult Create(nsXULDocument* aDocument, nsIStreamObserver** aResult);
|
||||
CachedChromeLoader(nsXULDocument* aDocument);
|
||||
virtual ~CachedChromeLoader();
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -1996,8 +1996,14 @@ nsXULDocument::CreateFromPrototype(const char* aCommand,
|
|||
getter_AddRefs(loadgroup));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIStreamObserver> loader;
|
||||
rv = nsXULDocument::CachedChromeLoader::Create(this, getter_AddRefs(loader));
|
||||
CachedChromeLoader* loader = new CachedChromeLoader(this);
|
||||
if (! loader)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(loader);
|
||||
nsCOMPtr<nsIStreamObserver> anchor = do_QueryInterface(loader, &rv);
|
||||
NS_RELEASE(loader);
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = loadgroup->Init(loader);
|
||||
|
@ -5559,18 +5565,6 @@ nsXULDocument::CachedChromeLoader::~CachedChromeLoader()
|
|||
NS_RELEASE(mDocument);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULDocument::CachedChromeLoader::Create(nsXULDocument* aDocument, nsIStreamObserver** aResult)
|
||||
{
|
||||
CachedChromeLoader* loader = new CachedChromeLoader(aDocument);
|
||||
if (! loader)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
*aResult = loader;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(nsXULDocument::CachedChromeLoader);
|
||||
NS_IMPL_RELEASE(nsXULDocument::CachedChromeLoader);
|
||||
|
||||
|
|
|
@ -752,14 +752,12 @@ protected:
|
|||
class CachedChromeLoader : public nsIStreamObserver
|
||||
{
|
||||
protected:
|
||||
CachedChromeLoader(nsXULDocument* aDocument);
|
||||
virtual ~CachedChromeLoader();
|
||||
|
||||
nsXULDocument* mDocument;
|
||||
PRBool mLoading;
|
||||
|
||||
public:
|
||||
static nsresult Create(nsXULDocument* aDocument, nsIStreamObserver** aResult);
|
||||
CachedChromeLoader(nsXULDocument* aDocument);
|
||||
virtual ~CachedChromeLoader();
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
Загрузка…
Ссылка в новой задаче