Added Get/Set methods to content IDs. An ID is used as a key to store state information about a content object and its associated frame object. The state information is stored in a dictionary that is manipulated by the frame manager (nsIFrameManager) inside layout. An opaque pointer to this dictionary is passed to the session history as a handle associated with the current document's state.

git-svn-id: svn://10.0.0.236/trunk@45321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
1999-08-31 10:06:17 +00:00
parent 59a9336c6c
commit 9a418f414b
34 changed files with 387 additions and 3 deletions

View File

@@ -151,6 +151,16 @@ public:
nsIDOMEvent** aDOMEvent,
PRUint32 aFlags,
nsEventStatus& aEventStatus);
NS_IMETHOD GetContentID(PRUint32* aID) {
*aID = mContentID;
return NS_OK;
}
NS_IMETHOD SetContentID(PRUint32 aID) {
mContentID = aID;
return NS_OK;
}
NS_IMETHOD RangeAdd(nsIDOMRange& aRange){
return mInner.RangeAdd(aRange);
}
@@ -181,6 +191,7 @@ public:
protected:
nsGenericDOMDataNode mInner;
PRUint32 mContentID;
};
nsresult NS_NewCommentNode(nsIContent** aInstancePtrResult);
@@ -202,6 +213,7 @@ nsCommentNode::nsCommentNode()
{
NS_INIT_REFCNT();
mInner.Init(this);
mContentID = 0;
}
nsCommentNode::~nsCommentNode()