зеркало из https://github.com/mozilla/pjs.git
fix for bugs: 16724, 16855; r=sfraser
This commit is contained in:
Родитель
66d3eb4808
Коммит
307ac216f2
|
@ -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)))
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче