зеркало из https://github.com/mozilla/gecko-dev.git
backout Bug 516237
This commit is contained in:
Родитель
6dbd520263
Коммит
01b281b7b0
|
@ -272,7 +272,7 @@ nsTreeSelection::~nsTreeSelection()
|
|||
mSelectTimer->Cancel();
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_2(nsTreeSelection, mTree, mCurrentColumn)
|
||||
NS_IMPL_CYCLE_COLLECTION_1(nsTreeSelection, mCurrentColumn)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsTreeSelection)
|
||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsTreeSelection)
|
||||
|
@ -286,7 +286,8 @@ NS_INTERFACE_MAP_END
|
|||
|
||||
NS_IMETHODIMP nsTreeSelection::GetTree(nsITreeBoxObject * *aTree)
|
||||
{
|
||||
NS_IF_ADDREF(*aTree = mTree);
|
||||
NS_IF_ADDREF(mTree);
|
||||
*aTree = mTree;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -296,11 +297,7 @@ NS_IMETHODIMP nsTreeSelection::SetTree(nsITreeBoxObject * aTree)
|
|||
mSelectTimer->Cancel();
|
||||
mSelectTimer = nsnull;
|
||||
}
|
||||
|
||||
// Make sure aTree really implements nsITreeBoxObject and nsIBoxObject!
|
||||
nsCOMPtr<nsIBoxObject> bo = do_QueryInterface(aTree);
|
||||
mTree = do_QueryInterface(bo);
|
||||
NS_ENSURE_STATE(mTree == aTree);
|
||||
mTree = aTree; // WEAK
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ protected:
|
|||
|
||||
protected:
|
||||
// Members
|
||||
nsCOMPtr<nsITreeBoxObject> mTree; // The tree will hold on to us through the view and let go when it dies.
|
||||
nsITreeBoxObject* mTree; // [Weak]. The tree will hold on to us through the view and let go when it dies.
|
||||
|
||||
PRBool mSuppressed; // Whether or not we should be firing onselect events.
|
||||
PRInt32 mCurrentIndex; // The item to draw the rect around. The last one clicked, etc.
|
||||
|
|
Загрузка…
Ссылка в новой задаче