mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Menubars are special on OSX too. Bug 385880, r=bernd, sr=roc
This commit is contained in:
parent
31793a2838
commit
eca3a4a55a
@ -3335,10 +3335,7 @@ IsSpecialContent(nsIContent* aContent,
|
||||
aTag == nsGkAtoms::menu ||
|
||||
aTag == nsGkAtoms::menuitem ||
|
||||
aTag == nsGkAtoms::menubutton ||
|
||||
#ifndef XP_MACOSX
|
||||
// keep this in sync with ConstructXULFrame especially for the MAC
|
||||
aTag == nsGkAtoms::menubar ||
|
||||
#endif
|
||||
aTag == nsGkAtoms::popupgroup ||
|
||||
aTag == nsGkAtoms::iframe ||
|
||||
aTag == nsGkAtoms::editor ||
|
||||
@ -5795,7 +5792,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState,
|
||||
#ifdef XP_MACOSX
|
||||
// On Mac OS X, we use the system menubar for any root chrome shell
|
||||
// XUL menubars.
|
||||
// keep this in sync with IsSpecialContent
|
||||
PRBool isRootChromeShell = PR_FALSE;
|
||||
nsCOMPtr<nsISupports> container = aState.mPresContext->GetContainer();
|
||||
if (container) {
|
||||
|
Loading…
Reference in New Issue
Block a user