if (nsIFrame::GetVerifyTreeEnable()) { rootFrame->VerifyTree();
if (nsIFrameDebug::GetVerifyTreeEnable()) { nsIFrameDebug*  frameDebug;  if (NS_SUCCEEDED(rootFrame->QueryInterface(nsIFrameDebug::GetIID(), (void**)&frameDebug))) { frameDebug->VerifyTree(); }
PresShell::StyleChangeReflow(){  EnterReflowLock();  nsIFrame* rootFrame;  mFrameManager->GetRootFrame(&rootFrame);  if (rootFrame) {    // Kick off a top-down reflow    NS_FRAME_LOG(NS_FRAME_TRACE_CALLS,                 ("enter nsPresShell::StyleChangeReflow"));#ifdef NS_DEBUG    if (nsIFrame::GetVerifyTreeEnable()) {      rootFrame->VerifyTree();    }#endif    nsRect                bounds;    mPresContext->GetVisibleArea(bounds);    nsSize                maxSize(bounds.width, bounds.height);    nsHTMLReflowMetrics   desiredSize(nsnull);    nsReflowStatus        status;    nsIRenderingContext*  rcx = nsnull;    CreateRenderingContext(rootFrame, &rcx);    // XXX We should be using eReflowReason_StyleChange    nsHTMLReflowState reflowState(*mPresContext, rootFrame,                                  eReflowReason_Resize, rcx, maxSize);    rootFrame->Reflow(*mPresContext, desiredSize, reflowState, status);    rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height);#ifdef NS_DEBUG    if (nsIFrame::GetVerifyTreeEnable()) {      rootFrame->VerifyTree();    }#endif    VERIFY_STYLE_TREE;    NS_IF_RELEASE(rcx);    NS_FRAME_LOG(NS_FRAME_TRACE_CALLS, ("exit nsPresShell::StyleChangeReflow"));  }  ExitReflowLock();  return NS_OK; //XXX this needs to be real. MMP}