More fixes for bug # 46828. r=pollmann sr=rpotts

git-svn-id: svn://10.0.0.236/trunk@178080 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
radha%netscape.com
2005-08-18 11:15:58 +00:00
parent 2257d07cb6
commit 34c0f7a04c
3 changed files with 22 additions and 0 deletions

View File

@@ -61,6 +61,11 @@ attribute nsISHEntry parent;
* when reload is pressed, it has the appropriate reload flag
*/
attribute unsigned long loadType;
/**
* An ID to help identify this entry from others during
* subframe navigation
*/
attribute unsigned long ID;
/** Additional ways to create an entry */
void create(in nsIURI aURI, in wstring aTitle, in nsIDOMDocument aDocument,

View File

@@ -25,6 +25,7 @@
#include "nsXPIDLString.h"
#include "nsIDocShellLoadInfo.h"
PRUint32 gEntryID=0;
//*****************************************************************************
//*** nsSHEntry: Object Management
//*****************************************************************************
@@ -33,6 +34,7 @@ nsSHEntry::nsSHEntry()
{
NS_INIT_REFCNT();
mParent = nsnull;
mID = gEntryID++;
}
nsSHEntry::~nsSHEntry()
@@ -163,6 +165,20 @@ NS_IMETHODIMP nsSHEntry::SetLoadType(PRUint32 aLoadType)
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::GetID(PRUint32 * aResult)
{
NS_ENSURE_ARG_POINTER(aResult);
*aResult = mID;
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::SetID(PRUint32 aID)
{
mID = aID;
return NS_OK;
}
nsresult
nsSHEntry::Create(nsIURI * aURI, const PRUnichar * aTitle, nsIDOMDocument * aDOMDocument,
nsIInputStream * aInputStream, nsILayoutHistoryState * aHistoryLayoutState)

View File

@@ -63,6 +63,7 @@ private:
nsCOMPtr<nsILayoutHistoryState> mLayoutHistoryState;
nsVoidArray mChildren;
PRUint32 mLoadType;
PRUint32 mID;
nsISHEntry * mParent; // weak reference
};