return ResizeReflow(aWidth, aHeight);
NotifyReflowObservers(NS_PRESSHELL_RESIZE_REFLOW); mViewManager->CacheWidgetChanges(PR_TRUE);  mCaret->EraseCaret();  WillCauseReflow();  if (mPresContext) { nsRect r(0, 0, aWidth, aHeight); mPresContext->SetVisibleArea(r); }    nsIFrame* rootFrame; mFrameManager->GetRootFrame(&rootFrame); if (rootFrame) {  NS_FRAME_LOG(NS_FRAME_TRACE_CALLS, ("enter nsPresShell::ResizeReflow: %d,%d", aWidth, aHeight)); #ifdef NS_DEBUG if (nsIFrameDebug::GetVerifyTreeEnable()) { nsIFrameDebug*  frameDebug;  if (NS_SUCCEEDED(rootFrame->QueryInterface(NS_GET_IID(nsIFrameDebug), (void**)&frameDebug))) { frameDebug->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; nsIRenderingContext*  rcx = nsnull;  nsresult rv=CreateRenderingContext(rootFrame, &rcx); if (NS_FAILED(rv)) return rv;  nsHTMLReflowState reflowState(mPresContext, rootFrame, eReflowReason_Resize, rcx, maxSize); nsIView*          view;  rootFrame->WillReflow(mPresContext); rootFrame->GetView(mPresContext, &view); if (view) { nsContainerFrame::PositionFrameView(mPresContext, rootFrame, view); } rootFrame->Reflow(mPresContext, desiredSize, reflowState, status); rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height); if (view) { nsContainerFrame::SyncFrameViewAfterReflow(mPresContext, rootFrame, view, nsnull); } rootFrame->DidReflow(mPresContext, NS_FRAME_REFLOW_FINISHED); #ifdef NS_DEBUG if (nsIFrameDebug::GetVerifyTreeEnable()) { nsIFrameDebug*  frameDebug;  if (NS_SUCCEEDED(rootFrame->QueryInterface(NS_GET_IID(nsIFrameDebug), (void**)&frameDebug))) { frameDebug->VerifyTree(); } } #endif VERIFY_STYLE_TREE; 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 } DidCauseReflow();  #ifdef NS_DEBUG if (GetVerifyReflowEnable() && (VERIFY_REFLOW_DURING_RESIZE_REFLOW & gVerifyReflowFlags)) { mInVerifyReflow = PR_TRUE; VerifyIncrementalReflow(); mInVerifyReflow = PR_FALSE; } #endif  mViewManager->CacheWidgetChanges(PR_FALSE); HandlePostedDOMEvents(); HandlePostedAttributeChanges(); HandlePostedReflowCallbacks();   nsEvent event; nsEventStatus status; event.eventStructType = NS_EVENT; event.message = NS_RESIZE_EVENT; event.time = 0;  nsCOMPtr<nsIScriptGlobalObject> globalObj; mDocument->GetScriptGlobalObject(getter_AddRefs(globalObj)); globalObj->HandleDOMEvent(mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);  return NS_OK;
PresShell::ResizeReflow(nsIView *aView, nscoord aWidth, nscoord aHeight){  return ResizeReflow(aWidth, aHeight);}