зеркало из https://github.com/mozilla/pjs.git
Bug 387236, submenus not closing up entire hierarchy, r+sr=bz
This commit is contained in:
Родитель
ac4890c33d
Коммит
09c4a283c4
|
@ -544,11 +544,12 @@ nsXULPopupManager::HidePopupCallback(nsIContent* aPopup,
|
|||
if (foundMenu && (aLastPopup || aIsMenu == foundMenu->IsMenu())) {
|
||||
PRBool ismenu = foundMenu->IsMenu();
|
||||
nsCOMPtr<nsIContent> popupToHide = item->Content();
|
||||
nsMenuChainItem* parent = item->GetParent();
|
||||
item->Detach(&mCurrentMenu);
|
||||
|
||||
nsCOMPtr<nsIContent> nextPopup;
|
||||
if (item->GetParent() && popupToHide != aLastPopup)
|
||||
nextPopup = item->GetParent()->Content();
|
||||
if (parent && popupToHide != aLastPopup)
|
||||
nextPopup = parent->Content();
|
||||
|
||||
nsPresContext* presContext = item->Frame()->PresContext();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче