mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
Fix for #41878, r=ben
This commit is contained in:
parent
4178f01df1
commit
98873f2656
@ -1055,7 +1055,7 @@ nsXBLBinding::AttributeChanged(nsIAtom* aAttribute, PRInt32 aNameSpaceID, PRBool
|
||||
// Flush out all our kids.
|
||||
PRInt32 childCount;
|
||||
element->ChildCount(childCount);
|
||||
if (childCount > 0)
|
||||
for (PRInt32 i = 0; i < childCount; i++)
|
||||
element->RemoveChildAt(0, PR_TRUE);
|
||||
|
||||
if (!aRemoveFlag) {
|
||||
|
@ -1055,7 +1055,7 @@ nsXBLBinding::AttributeChanged(nsIAtom* aAttribute, PRInt32 aNameSpaceID, PRBool
|
||||
// Flush out all our kids.
|
||||
PRInt32 childCount;
|
||||
element->ChildCount(childCount);
|
||||
if (childCount > 0)
|
||||
for (PRInt32 i = 0; i < childCount; i++)
|
||||
element->RemoveChildAt(0, PR_TRUE);
|
||||
|
||||
if (!aRemoveFlag) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user