зеркало из https://github.com/mozilla/gecko-dev.git
adding "default" window border type
This commit is contained in:
Родитель
846f8b7e79
Коммит
47baece26c
|
@ -345,6 +345,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
|||
case eWindowType_dialog:
|
||||
if (aInitData &&
|
||||
aInitData->mBorderStyle != eBorderStyle_all &&
|
||||
aInitData->mBorderStyle != eBorderStyle_default &&
|
||||
(aInitData->mBorderStyle == eBorderStyle_none ||
|
||||
!(aInitData->mBorderStyle & eBorderStyle_title)))
|
||||
{
|
||||
|
@ -361,6 +362,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
|||
case eWindowType_toplevel:
|
||||
if (aInitData &&
|
||||
aInitData->mBorderStyle != eBorderStyle_all &&
|
||||
aInitData->mBorderStyle != eBorderStyle_default &&
|
||||
(aInitData->mBorderStyle == eBorderStyle_none ||
|
||||
!(aInitData->mBorderStyle & eBorderStyle_resizeh)))
|
||||
wDefProcID = kWindowDocumentProc;
|
||||
|
@ -384,6 +386,8 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
|||
if (aInitData && aInitData->mBorderStyle != eBorderStyle_all)
|
||||
{
|
||||
if (aInitData->mBorderStyle == eBorderStyle_none ||
|
||||
aInitData->mBorderStyle == eBorderStyle_default &&
|
||||
windowType == eWindowType_dialog ||
|
||||
!(aInitData->mBorderStyle & eBorderStyle_close))
|
||||
goAwayFlag = false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче