"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "platform/layout/xul/nsMenuFrame.cpp" between
palemoon-29.4.1-source.tar.xz and palemoon-29.4.2-source.tar.xz

About: Pale Moon is a full-featured, optimized browser derived from the code behind the Firefox browser (shares the Unified XUL Platform (UXP)). Source code. Hint (Sept. 15, 2021): The separate application source code tarballs seems no longer available but only tarballs bundled with the underlying UXP platform code (see here).

nsMenuFrame.cpp  (palemoon-29.4.1-source.tar.xz):nsMenuFrame.cpp  (palemoon-29.4.2-source.tar.xz)
skipping to change at line 1276 skipping to change at line 1276
new nsXULMenuCommandEvent(mContent, isTrusted, shift, control, alt, meta, new nsXULMenuCommandEvent(mContent, isTrusted, shift, control, alt, meta,
userinput, aFlipChecked); userinput, aFlipChecked);
} }
void void
nsMenuFrame::PassMenuCommandEventToPopupManager() nsMenuFrame::PassMenuCommandEventToPopupManager()
{ {
nsXULPopupManager* pm = nsXULPopupManager::GetInstance(); nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
nsMenuParent* menuParent = GetMenuParent(); nsMenuParent* menuParent = GetMenuParent();
if (pm && menuParent && mDelayedMenuCommandEvent) { if (pm && menuParent && mDelayedMenuCommandEvent) {
pm->ExecuteMenu(mContent, mDelayedMenuCommandEvent); nsCOMPtr<nsIContent> content = mContent;
RefPtr<nsXULMenuCommandEvent> event = mDelayedMenuCommandEvent;
pm->ExecuteMenu(content, event);
} }
mDelayedMenuCommandEvent = nullptr; mDelayedMenuCommandEvent = nullptr;
} }
void void
nsMenuFrame::RemoveFrame(ChildListID aListID, nsMenuFrame::RemoveFrame(ChildListID aListID,
nsIFrame* aOldFrame) nsIFrame* aOldFrame)
{ {
nsFrameList* popupList = GetPopupList(); nsFrameList* popupList = GetPopupList();
if (popupList && popupList->FirstChild() == aOldFrame) { if (popupList && popupList->FirstChild() == aOldFrame) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)