Add a comment explaining ComparePoints

git-svn-id: svn://10.0.0.236/trunk@16691 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1998-12-18 23:13:25 +00:00
parent 4ee0d91310
commit ef0129559b
2 changed files with 8 additions and 0 deletions

View File

@@ -142,6 +142,10 @@ private:
// Make a new nsIDOMRange object
nsresult NS_NewRange(nsIDOMRange** aInstancePtrResult);
//
// Utility routine to compare two "points", were a point is a node/offset pair
// Returns -1 if point1 < point2, 1, if point1 > point2,
// 0 if error or if point1 == point2.
//
PRInt32 ComparePoints(nsIDOMNode* aParent1, PRInt32 aOffset1,
nsIDOMNode* aParent2, PRInt32 aOffset2);

View File

@@ -142,6 +142,10 @@ private:
// Make a new nsIDOMRange object
nsresult NS_NewRange(nsIDOMRange** aInstancePtrResult);
//
// Utility routine to compare two "points", were a point is a node/offset pair
// Returns -1 if point1 < point2, 1, if point1 > point2,
// 0 if error or if point1 == point2.
//
PRInt32 ComparePoints(nsIDOMNode* aParent1, PRInt32 aOffset1,
nsIDOMNode* aParent2, PRInt32 aOffset2);