Bug 898926 - xbl:children elements are insertion points if they're inactive. r=sicking

This commit is contained in:
Blake Kaplan 2013-08-06 17:31:30 -07:00
parent 25e763c7a5
commit c619ffae01

View File

@ -1208,7 +1208,7 @@ nsBindingManager::FindNestedInsertionPoint(nsIContent* aContainer,
"Wrong container");
nsIContent* parent = aContainer;
if (aContainer->NodeInfo()->Equals(nsGkAtoms::children, kNameSpaceID_XBL)) {
if (aContainer->IsActiveChildrenElement()) {
if (static_cast<XBLChildrenElement*>(aContainer)->
HasInsertedChildren()) {
return nullptr;
@ -1244,7 +1244,7 @@ nsBindingManager::FindNestedSingleInsertionPoint(nsIContent* aContainer,
*aMulti = false;
nsIContent* parent = aContainer;
if (aContainer->NodeInfo()->Equals(nsGkAtoms::children, kNameSpaceID_XBL)) {
if (aContainer->IsActiveChildrenElement()) {
if (static_cast<XBLChildrenElement*>(aContainer)->
HasInsertedChildren()) {
return nullptr;