From fd4da3a3edb855e524092efc8e36d16761f80f5c Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 17 Sep 1998 04:44:27 +0000 Subject: [PATCH] Removed some XXX frame construction work-in-progress code git-svn-id: svn://10.0.0.236/trunk@10244 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/src/nsPresShell.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/mozilla/layout/base/src/nsPresShell.cpp b/mozilla/layout/base/src/nsPresShell.cpp index f634f719b25..a4e43e9c796 100644 --- a/mozilla/layout/base/src/nsPresShell.cpp +++ b/mozilla/layout/base/src/nsPresShell.cpp @@ -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); } } }