зеркало из https://github.com/mozilla/gecko-dev.git
once again runs under unix.
This commit is contained in:
Родитель
da6cb28eba
Коммит
ff4477a14e
|
@ -262,6 +262,12 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent,
|
||||||
// save the event callback function
|
// save the event callback function
|
||||||
mEventCallback = aHandleEventFunction;
|
mEventCallback = aHandleEventFunction;
|
||||||
|
|
||||||
|
if (0==aNativeParent) {
|
||||||
|
parentWidget = (Widget) aInitData ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
parentWidget = (Widget)aNativeParent;
|
||||||
|
|
||||||
// keep a reference to the toolkit object
|
// keep a reference to the toolkit object
|
||||||
if (aContext) {
|
if (aContext) {
|
||||||
mContext = aContext;
|
mContext = aContext;
|
||||||
|
@ -279,16 +285,10 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent,
|
||||||
kDeviceContextIID,
|
kDeviceContextIID,
|
||||||
(void **)&mContext);
|
(void **)&mContext);
|
||||||
if (NS_OK == res) {
|
if (NS_OK == res) {
|
||||||
mContext->Init(nsnull);
|
mContext->Init(parentWidget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0==aNativeParent) {
|
|
||||||
parentWidget = (Widget) aInitData ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
parentWidget = (Widget)aNativeParent;
|
|
||||||
|
|
||||||
Widget frameParent = 0;
|
Widget frameParent = 0;
|
||||||
if (!aNativeParent) {
|
if (!aNativeParent) {
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче