Add a comment explaining ComparePoints

This commit is contained in:
akkana%netscape.com 1998-12-18 23:13:25 +00:00
Родитель a6109b9b6d
Коммит a34d223b25
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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);