Okay, backout and try this again
git-svn-id: svn://10.0.0.236/trunk@194947 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -660,10 +660,6 @@ nsresult nsIView::CreateWidget(const nsIID &aWindowIID,
|
||||
: nsnull;
|
||||
trect += offset;
|
||||
if (aWidgetInitData->mWindowType == eWindowType_popup) {
|
||||
// Without a parent, we can't make a popup. This can happen
|
||||
// when printing
|
||||
if (!parentWidget)
|
||||
return NS_ERROR_FAILURE;
|
||||
mWindow->Create(parentWidget->GetNativeData(NS_NATIVE_WIDGET), trect,
|
||||
::HandleEvent, dx, nsnull, nsnull, aWidgetInitData);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user