ASSERTION: disconnected nodes. b=424276 r+sr=bzbarsky

This commit is contained in:
Mats Palmgren 2008-11-02 17:31:29 +01:00
Родитель c753751b61
Коммит 1882b961d6
1 изменённых файлов: 7 добавлений и 5 удалений

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

@ -1673,11 +1673,13 @@ nsContentUtils::ComparePoints(nsINode* aParent1, PRInt32 aOffset1,
PRUint32 pos1 = parents1.Length() - 1;
PRUint32 pos2 = parents2.Length() - 1;
NS_ASSERTION(parents1.ElementAt(pos1) == parents2.ElementAt(pos2) ||
aDisconnected,
"disconnected nodes");
PRBool disconnected = parents1.ElementAt(pos1) != parents2.ElementAt(pos2);
if (aDisconnected) {
*aDisconnected = (parents1.ElementAt(pos1) != parents2.ElementAt(pos2));
*aDisconnected = disconnected;
}
if (disconnected) {
NS_ASSERTION(aDisconnected, "unexpected disconnected nodes");
return 1;
}
// Find where the parent chains differ