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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user