applying same fix as rev 1.28 (initializing mIsDone) to the rest of the Init() methods.

This commit is contained in:
jfrancis%netscape.com 1999-10-08 23:34:07 +00:00
Родитель f0ef8df8d9
Коммит 14f246e247
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -257,6 +257,8 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange)
PRInt32 startIndx;
PRInt32 endIndx;
mIsDone = PR_FALSE;
// get common content parent
if (NS_FAILED(aRange->GetCommonParent(getter_AddRefs(dN))) || !dN)
return NS_ERROR_FAILURE;
@ -804,6 +806,8 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange)
if (!aRange)
return NS_ERROR_NULL_POINTER;
mIsDone = PR_FALSE;
mRange = do_QueryInterface(aRange);
// get the start node and offset, convert to nsIContent

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

@ -257,6 +257,8 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange)
PRInt32 startIndx;
PRInt32 endIndx;
mIsDone = PR_FALSE;
// get common content parent
if (NS_FAILED(aRange->GetCommonParent(getter_AddRefs(dN))) || !dN)
return NS_ERROR_FAILURE;
@ -804,6 +806,8 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange)
if (!aRange)
return NS_ERROR_NULL_POINTER;
mIsDone = PR_FALSE;
mRange = do_QueryInterface(aRange);
// get the start node and offset, convert to nsIContent