зеркало из https://github.com/mozilla/gecko-dev.git
Additional patch for bug 348304, fixes bug 351323, r+sr=dbaron
This commit is contained in:
Родитель
0eff12bbc6
Коммит
23e9b4b3b4
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче