Backing out changes for 39054, which caused several template regressions.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user