зеркало из https://github.com/mozilla/gecko-dev.git
Menubars are special on OSX too. Bug 385880, r=bernd, sr=roc
This commit is contained in:
Родитель
31793a2838
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче