From c619ffae0186b80ab0c21f865abd12b153e698ff Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Tue, 6 Aug 2013 17:31:30 -0700 Subject: [PATCH] Bug 898926 - xbl:children elements are insertion points if they're inactive. r=sicking --- content/xbl/src/nsBindingManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/xbl/src/nsBindingManager.cpp b/content/xbl/src/nsBindingManager.cpp index d78d57c9b975..2b7dc949896c 100644 --- a/content/xbl/src/nsBindingManager.cpp +++ b/content/xbl/src/nsBindingManager.cpp @@ -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(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(aContainer)-> HasInsertedChildren()) { return nullptr;