mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Fixing 44859. r=hyatt.
This commit is contained in:
parent
2935c4f47c
commit
47c50cf898
@ -2551,7 +2551,13 @@ nsXULElement::RemoveChildAt(PRInt32 aIndex, PRBool aNotify)
|
|||||||
// and cells going away.
|
// and cells going away.
|
||||||
// First, retrieve the tree.
|
// First, retrieve the tree.
|
||||||
nsCOMPtr<nsIDOMXULTreeElement> treeElement;
|
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) {
|
if (treeElement) {
|
||||||
nsCOMPtr<nsIDOMNodeList> itemList;
|
nsCOMPtr<nsIDOMNodeList> itemList;
|
||||||
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
||||||
|
@ -2551,7 +2551,13 @@ nsXULElement::RemoveChildAt(PRInt32 aIndex, PRBool aNotify)
|
|||||||
// and cells going away.
|
// and cells going away.
|
||||||
// First, retrieve the tree.
|
// First, retrieve the tree.
|
||||||
nsCOMPtr<nsIDOMXULTreeElement> treeElement;
|
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) {
|
if (treeElement) {
|
||||||
nsCOMPtr<nsIDOMNodeList> itemList;
|
nsCOMPtr<nsIDOMNodeList> itemList;
|
||||||
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
treeElement->GetSelectedItems(getter_AddRefs(itemList));
|
||||||
|
Loading…
Reference in New Issue
Block a user