106092 - trunk m1br m100 n70pr1 topcrash @nsMenuFrame::OpenMenu. r=brade sr=ben

This commit is contained in:
blakeross%telocity.com 2002-06-28 03:10:08 +00:00
parent af924e2843
commit bbe207a207

View File

@ -742,6 +742,9 @@ nsMenuFrame::AttributeChanged(nsIPresContext* aPresContext,
NS_IMETHODIMP
nsMenuFrame::OpenMenu(PRBool aActivateFlag)
{
if (!mContent)
return NS_OK;
nsCOMPtr<nsIDOMElement> domElement(do_QueryInterface(mContent));
if (aActivateFlag) {
// Now that the menu is opened, we should have a menupopup child built.