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
Родитель 52a3e39f51
Коммит f670e7d6b8
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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.