return ResizeReflow(aWidth, aHeight);
StCaretHider  caretHider(this); EnterReflowLock();  if (mPresContext) { nsRect r(0, 0, aWidth, aHeight); mPresContext->SetVisibleArea(r); }    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 #ifdef DEBUG_kipp nsPresShell_ReflowStackPointerTop = (char*) &aWidth; #endif nsRect                bounds; mPresContext->GetVisibleArea(bounds); nsSize                maxSize(bounds.width, bounds.height); nsHTMLReflowMetrics   desiredSize(nsnull); nsReflowStatus        status; nsIHTMLReflow*        htmlReflow; nsIRenderingContext*  rcx = nsnull;  CreateRenderingContext(mRootFrame, &rcx);  nsHTMLReflowState reflowState(*mPresContext, mRootFrame, eReflowReason_Resize, rcx, maxSize);  if (NS_OK == mRootFrame->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) { htmlReflow->Reflow(*mPresContext, desiredSize, reflowState, status); mRootFrame->SizeTo(desiredSize.width, desiredSize.height); #ifdef NS_DEBUG if (nsIFrame::GetVerifyTreeEnable()) { mRootFrame->VerifyTree(); } #endif } NS_IF_RELEASE(rcx); 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;
PresShell::ResizeReflow(nsIView *aView, nscoord aWidth, nscoord aHeight){  return ResizeReflow(aWidth, aHeight);}