From 5c4ca89c3b03166815210bbad4a57b0adeb8dbfa Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Tue, 20 Jun 2000 08:01:19 +0000 Subject: [PATCH] Added Set/GetLoadCookie methods to nsDocShell. The mLoadCookie is no longer directly set by the nsDSURIContentListener class! git-svn-id: svn://10.0.0.236/trunk@72645 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDSURIContentListener.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mozilla/docshell/base/nsDSURIContentListener.cpp b/mozilla/docshell/base/nsDSURIContentListener.cpp index 7423135acf4..abb8f03ec1b 100644 --- a/mozilla/docshell/base/nsDSURIContentListener.cpp +++ b/mozilla/docshell/base/nsDSURIContentListener.cpp @@ -180,16 +180,13 @@ NS_IMETHODIMP nsDSURIContentListener::CanHandleContent(const char* aContentType, NS_IMETHODIMP nsDSURIContentListener::GetLoadCookie(nsISupports ** aLoadCookie) { - *aLoadCookie = mDocShell->mLoadCookie; - NS_IF_ADDREF(*aLoadCookie); - return NS_OK; + return mDocShell->GetLoadCookie(aLoadCookie); } NS_IMETHODIMP nsDSURIContentListener::SetLoadCookie(nsISupports * aLoadCookie) { - mDocShell->mLoadCookie = aLoadCookie; - return NS_OK; + return mDocShell->SetLoadCookie(aLoadCookie); } NS_IMETHODIMP