зеркало из https://github.com/mozilla/gecko-dev.git
applying same fix as rev 1.28 (initializing mIsDone) to the rest of the Init() methods.
This commit is contained in:
Родитель
f0ef8df8d9
Коммит
14f246e247
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче