mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 898926 - xbl:children elements are insertion points if they're inactive. r=sicking
This commit is contained in:
parent
25e763c7a5
commit
c619ffae01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user