Bug 696745, remove nsIMenuRollup and xul-popup-manager component, r=mats,sr=roc
This commit is contained in:
@@ -473,7 +473,7 @@ nsComboboxControlFrame::ShowList(bool aShowList)
|
||||
if (view) {
|
||||
nsIWidget* widget = view->GetWidget();
|
||||
if (widget) {
|
||||
widget->CaptureRollupEvents(this, nsnull, mDroppedDown, mDroppedDown);
|
||||
widget->CaptureRollupEvents(this, mDroppedDown, mDroppedDown);
|
||||
|
||||
if (!aShowList) {
|
||||
nsCOMPtr<nsIRunnable> widgetDestroyer =
|
||||
@@ -1322,7 +1322,7 @@ nsComboboxControlFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
||||
if (view) {
|
||||
nsIWidget* widget = view->GetWidget();
|
||||
if (widget)
|
||||
widget->CaptureRollupEvents(this, nsnull, false, true);
|
||||
widget->CaptureRollupEvents(this, false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1375,24 +1375,21 @@ nsComboboxControlFrame::SetInitialChildList(ChildListID aListID,
|
||||
//----------------------------------------------------------------------
|
||||
//nsIRollupListener
|
||||
//----------------------------------------------------------------------
|
||||
NS_IMETHODIMP
|
||||
nsComboboxControlFrame::Rollup(PRUint32 aCount,
|
||||
nsIContent** aLastRolledUp)
|
||||
nsIContent*
|
||||
nsComboboxControlFrame::Rollup(PRUint32 aCount, bool aGetLastRolledUp)
|
||||
{
|
||||
if (aLastRolledUp)
|
||||
*aLastRolledUp = nsnull;
|
||||
|
||||
if (mDroppedDown) {
|
||||
nsWeakFrame weakFrame(this);
|
||||
mListControlFrame->AboutToRollup(); // might destroy us
|
||||
if (!weakFrame.IsAlive())
|
||||
return NS_OK;
|
||||
return nsnull;
|
||||
ShowDropDown(false); // might destroy us
|
||||
if (!weakFrame.IsAlive())
|
||||
return NS_OK;
|
||||
return nsnull;
|
||||
mListControlFrame->CaptureMouseEvents(false);
|
||||
}
|
||||
return NS_OK;
|
||||
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user