Bug 285996C. Ensure that object frames create the widget for their view correctly the first time, and don't let them try to create a widget again when there already is one. r+sr=dbaron,a=asa.

git-svn-id: svn://10.0.0.236/trunk@171843 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2005-04-07 03:59:02 +00:00
parent 6c4f2a810d
commit c10d27a704
5 changed files with 29 additions and 11 deletions

View File

@@ -604,6 +604,7 @@ nsresult nsIView::CreateWidget(const nsIID &aWindowIID,
nsRect trect = mDimBounds;
float scale;
NS_ASSERTION(!mWindow, "We already have a window for this view? BAD");
NS_IF_RELEASE(mWindow);
mViewManager->GetDeviceContext(dx);