return ResizeReflow(aWidth, aHeight);
EnterReflowLock();  if (nsnull != mPresContext) { nsRect r(0, 0, aWidth, aHeight); mPresContext->SetVisibleArea(r); }  nsReflowReason  reflowReason = eReflowReason_Resize;  if (nsnull == mRootFrame) { if (nsnull != mDocument) { nsIContent* root = mDocument->GetRootContent(); if (nsnull != root) { 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); reflowReason = eReflowReason_Initial;   nsIView* rootView; mViewManager->GetRootView(rootView); mRootFrame->SetView(rootView); } NS_RELEASE(root); } } }  if (nsnull != mRootFrame) {  NS_FRAME_LOG(NS_FRAME_TRACE_CALLS, ("enter nsPresShell::ResizeReflow: %d,%d", aWidth, aHeight)); #ifdef NS_DEBUG if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } #endif nsRect          bounds; mPresContext->GetVisibleArea(bounds); nsSize          maxSize(bounds.width, bounds.height); nsReflowMetrics desiredSize(nsnull); nsReflowStatus  status; nsReflowState   reflowState(mRootFrame, reflowReason, maxSize);  mRootFrame->Reflow(*mPresContext, desiredSize, reflowState, status); mRootFrame->SizeTo(desiredSize.width, desiredSize.height); #ifdef NS_DEBUG if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } #endif NS_FRAME_LOG(NS_FRAME_TRACE_CALLS, ("exit nsPresShell::ResizeReflow"));   } else { #ifdef NOISY printf("PresShell::ResizeReflow: null root frame\n"); #endif }  ExitReflowLock();  return NS_OK;
NS_IMETHODIMP PresShell :: ResizeReflow(nsIView *aView, nscoord aWidth, nscoord aHeight){  return ResizeReflow(aWidth, aHeight);}