зеркало из https://github.com/mozilla/pjs.git
Add a comment explaining ComparePoints
This commit is contained in:
Родитель
aa734ee3dc
Коммит
fb1c00e52c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче