Removed some XXX frame construction work-in-progress code

This commit is contained in:
troy%netscape.com 1998-09-17 04:44:27 +00:00
parent 9adcf5d319
commit 4aa9929f8a

View File

@ -478,28 +478,9 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight)
if (nsnull != mDocument) {
nsIContent* root = mDocument->GetRootContent();
if (nsnull != root) {
// XXX CONSTRUCTION
#if 0
nsIContentDelegate* cd = root->GetDelegate(mPresContext);
if (nsnull != cd) {
nsIStyleContext* rootSC =
mPresContext->ResolveStyleContextFor(root, nsnull);
nsresult rv = cd->CreateFrame(mPresContext, root, nsnull,
rootSC, mRootFrame);
NS_RELEASE(rootSC);
NS_RELEASE(cd);
// Bind root frame to root view (and root window)
nsIView* rootView;
mViewManager->GetRootView(rootView);
mRootFrame->SetView(rootView);
}
#else
// Have style sheet processor construct a frame for the
// root content object
mPresContext->ConstructFrame(root, nsnull, mRootFrame);
#endif
NS_RELEASE(root);
}
}
}