fix for insertion point goofiness r=hyatt

This commit is contained in:
ben%netscape.com 2000-05-28 08:13:47 +00:00
Родитель 3ac747e4ce
Коммит bd2f4cf6a5
2 изменённых файлов: 10 добавлений и 18 удалений

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

@ -520,15 +520,11 @@ nsXBLBinding::GenerateAnonymousContent(nsIContent* aBoundElement)
}
nsCOMPtr<nsIContent> childrenElement;
if (!buildContent) {
// see if we have a <children/> element
GetNestedChild(kChildrenAtom, content, getter_AddRefs(childrenElement));
if (childrenElement) {
buildContent = PR_TRUE;
}
}
// see if we have a <children/> element
GetNestedChild(kChildrenAtom, content, getter_AddRefs(childrenElement));
if (childrenElement)
buildContent = PR_TRUE;
if (buildContent) {
// Always check the content element for potential attributes.
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(content));

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

@ -520,15 +520,11 @@ nsXBLBinding::GenerateAnonymousContent(nsIContent* aBoundElement)
}
nsCOMPtr<nsIContent> childrenElement;
if (!buildContent) {
// see if we have a <children/> element
GetNestedChild(kChildrenAtom, content, getter_AddRefs(childrenElement));
if (childrenElement) {
buildContent = PR_TRUE;
}
}
// see if we have a <children/> element
GetNestedChild(kChildrenAtom, content, getter_AddRefs(childrenElement));
if (childrenElement)
buildContent = PR_TRUE;
if (buildContent) {
// Always check the content element for potential attributes.
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(content));