Menubars are special on OSX too. Bug 385880, r=bernd, sr=roc

This commit is contained in:
bzbarsky@mit.edu 2007-07-03 11:48:57 -07:00
parent 31793a2838
commit eca3a4a55a

View File

@ -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) {