Fixing 44859. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@73932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bd2c6303f1
commit
afbe202d32
@ -2551,7 +2551,13 @@ nsXULElement::RemoveChildAt(PRInt32 aIndex, PRBool aNotify)
|
||||
// and cells going away.
|
||||
// First, retrieve the tree.
|
||||
nsCOMPtr<nsIDOMXULTreeElement> treeElement;
|
||||
rv = GetParentTree(getter_AddRefs(treeElement));
|
||||
|
||||
// Check first whether this element IS the tree
|
||||
treeElement = do_QueryInterface((nsIDOMXULElement*)this);
|
||||
|
||||
// If it's not, look at our parent
|
||||
if (!treeElement)
|
||||
rv = GetParentTree(getter_AddRefs(treeElement));
|
||||
if (treeElement) {
|
||||
nsCOMPtr<nsIDOMNodeList> itemList;
|
||||
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
||||
|
||||
@ -2551,7 +2551,13 @@ nsXULElement::RemoveChildAt(PRInt32 aIndex, PRBool aNotify)
|
||||
// and cells going away.
|
||||
// First, retrieve the tree.
|
||||
nsCOMPtr<nsIDOMXULTreeElement> treeElement;
|
||||
rv = GetParentTree(getter_AddRefs(treeElement));
|
||||
|
||||
// Check first whether this element IS the tree
|
||||
treeElement = do_QueryInterface((nsIDOMXULElement*)this);
|
||||
|
||||
// If it's not, look at our parent
|
||||
if (!treeElement)
|
||||
rv = GetParentTree(getter_AddRefs(treeElement));
|
||||
if (treeElement) {
|
||||
nsCOMPtr<nsIDOMNodeList> itemList;
|
||||
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user