зеркало из https://github.com/mozilla/pjs.git
Only set natural order attribute on the containment element.
This commit is contained in:
Родитель
0a10e64715
Коммит
7e4a5a8b81
|
@ -1146,7 +1146,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC
|
|||
}
|
||||
}
|
||||
// set natural order hint
|
||||
if (aNaturalOrderPos > 0)
|
||||
if ((aNaturalOrderPos > 0) && (isContainmentElement == PR_TRUE))
|
||||
{
|
||||
nsAutoString pos, zero("0000");
|
||||
pos.Append(aNaturalOrderPos, 10);
|
||||
|
|
|
@ -1146,7 +1146,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC
|
|||
}
|
||||
}
|
||||
// set natural order hint
|
||||
if (aNaturalOrderPos > 0)
|
||||
if ((aNaturalOrderPos > 0) && (isContainmentElement == PR_TRUE))
|
||||
{
|
||||
nsAutoString pos, zero("0000");
|
||||
pos.Append(aNaturalOrderPos, 10);
|
||||
|
|
|
@ -1146,7 +1146,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC
|
|||
}
|
||||
}
|
||||
// set natural order hint
|
||||
if (aNaturalOrderPos > 0)
|
||||
if ((aNaturalOrderPos > 0) && (isContainmentElement == PR_TRUE))
|
||||
{
|
||||
nsAutoString pos, zero("0000");
|
||||
pos.Append(aNaturalOrderPos, 10);
|
||||
|
|
Загрузка…
Ссылка в новой задаче