зеркало из https://github.com/mozilla/gecko-dev.git
fixed bug in CompareEndPoints()
This commit is contained in:
Родитель
37a6739ec1
Коммит
bcfb7de2e5
|
@ -1255,7 +1255,7 @@ nsresult nsRange::CompareEndPoints(PRUint16 how, nsIDOMRange* srcRange,
|
|||
|
||||
if ((node1 == node2) && (offset1 == offset2))
|
||||
*aCmpRet = 0;
|
||||
else if (IsIncreasing(node1, offset2, node2, offset2))
|
||||
else if (IsIncreasing(node1, offset1, node2, offset2))
|
||||
*aCmpRet = 1;
|
||||
else
|
||||
*aCmpRet = -1;
|
||||
|
|
|
@ -1255,7 +1255,7 @@ nsresult nsRange::CompareEndPoints(PRUint16 how, nsIDOMRange* srcRange,
|
|||
|
||||
if ((node1 == node2) && (offset1 == offset2))
|
||||
*aCmpRet = 0;
|
||||
else if (IsIncreasing(node1, offset2, node2, offset2))
|
||||
else if (IsIncreasing(node1, offset1, node2, offset2))
|
||||
*aCmpRet = 1;
|
||||
else
|
||||
*aCmpRet = -1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче