fix for bugs: 16724, 16855; r=sfraser

This commit is contained in:
jfrancis%netscape.com 1999-11-01 15:15:56 +00:00
Родитель 66d3eb4808
Коммит 307ac216f2
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -537,7 +537,7 @@ nsresult nsContentIterator::NextNode(nsCOMPtr<nsIContent> *ioNextNode)
PRInt32 indx; PRInt32 indx;
// get next sibling if there is one // get next sibling if there is one
if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))) || !parent) if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))))
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
if (!parent || NS_FAILED(parent->IndexOf(cN, indx))) if (!parent || NS_FAILED(parent->IndexOf(cN, indx)))
{ {
@ -571,7 +571,7 @@ nsresult nsContentIterator::PrevNode(nsCOMPtr<nsIContent> *ioNextNode)
PRInt32 indx; PRInt32 indx;
// get prev sibling if there is one // get prev sibling if there is one
if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))) || !parent) if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))))
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
if (!parent || NS_FAILED(parent->IndexOf(cN, indx))) if (!parent || NS_FAILED(parent->IndexOf(cN, indx)))
{ {

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

@ -537,7 +537,7 @@ nsresult nsContentIterator::NextNode(nsCOMPtr<nsIContent> *ioNextNode)
PRInt32 indx; PRInt32 indx;
// get next sibling if there is one // get next sibling if there is one
if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))) || !parent) if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))))
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
if (!parent || NS_FAILED(parent->IndexOf(cN, indx))) if (!parent || NS_FAILED(parent->IndexOf(cN, indx)))
{ {
@ -571,7 +571,7 @@ nsresult nsContentIterator::PrevNode(nsCOMPtr<nsIContent> *ioNextNode)
PRInt32 indx; PRInt32 indx;
// get prev sibling if there is one // get prev sibling if there is one
if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))) || !parent) if (NS_FAILED(cN->GetParent(*getter_AddRefs(parent))))
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
if (!parent || NS_FAILED(parent->IndexOf(cN, indx))) if (!parent || NS_FAILED(parent->IndexOf(cN, indx)))
{ {