Additional patch for bug 348304, fixes bug 351323, r+sr=dbaron

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-09-07 08:59:49 +00:00
Родитель 0eff12bbc6
Коммит 23e9b4b3b4
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1969,6 +1969,12 @@ public:
nsIFrame* frame = shell->GetPrimaryFrameFor(mContent);
NS_ENSURE_TRUE(frame, NS_OK);
PRBool collapsed = PR_FALSE;
nsBoxLayoutState state(frame->GetPresContext());
frame->IsCollapsed(state, collapsed);
if (collapsed) {
return NS_OK;
}
nsIMenuFrame* imenu = nsnull;
CallQueryInterface(frame, &imenu);
NS_ENSURE_TRUE(imenu, NS_OK);