Backing out changes for 39054, which caused several template regressions.

This commit is contained in:
waterson@netscape.com
2001-02-13 19:22:56 +00:00
parent a62374cba1
commit 3aef570e3f
18 changed files with 570 additions and 588 deletions

View File

@@ -805,9 +805,21 @@ struct ChildIterator
doc->GetBindingManager(getter_AddRefs(mBindingManager));
// Retrieve the anonymous content that we should build.
mBindingManager->GetXBLChildNodesFor(mContent, getter_AddRefs(mNodes));
if (mNodes)
mBindingManager->GetAnonymousNodesFor(mContent, getter_AddRefs(mNodes));
if (mNodes) {
mNodes->GetLength(&mLength);
if (mLength == 0)
mNodes = nsnull;
}
// We may have an altered list of children from XBL insertion points.
// If we don't have any anonymous kids, we next check to see if we have
// insertion points.
if (!mNodes) {
mBindingManager->GetContentListFor(mContent, getter_AddRefs(mNodes));
if (mNodes)
mNodes->GetLength(&mLength);
}
}
PRBool HasMoreChildren() {