зеркало из https://github.com/mozilla/gecko-dev.git
fix for insertion point goofiness r=hyatt
This commit is contained in:
Родитель
3ac747e4ce
Коммит
bd2f4cf6a5
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче