case nsIReflowCommand::ContentChanged : NS_ASSERTION(PR_FALSE, "illegal reflow type: ContentChanged"); rv = NS_ERROR_ILLEGAL_VALUE; break;  case nsIReflowCommand::ReflowDirty: {            InvalidateFirstPassCache();  InvalidateColumnWidths(); rv = NS_OK;
switch (type) { case nsIReflowCommand::StyleChanged : rv = IR_StyleChanged(aPresContext, aReflowState, aStatus); break; case nsIReflowCommand::ContentChanged : NS_ASSERTION(PR_FALSE, "illegal reflow type: ContentChanged"); rv = NS_ERROR_ILLEGAL_VALUE; break; case nsIReflowCommand::ReflowDirty: {  nsTableReflowState reflowState(aReflowState.reflowState, *this, eReflowReason_Initial, aReflowState.availSize.width, aReflowState.availSize.height); PRBool reflowedAtLeastOne; ReflowChildren(aPresContext, reflowState, PR_FALSE, PR_TRUE, aStatus, &reflowedAtLeastOne); if (!reflowedAtLeastOne)  SetNeedStrategyInit(PR_TRUE); } break; case nsIReflowCommand::Timeout: {
NS_METHOD nsTableFrame::IR_TargetIsMe(nsIPresContext*        aPresContext,                                      nsHTMLReflowMetrics&   aDesiredSize,                                      InnerTableReflowState& aReflowState,                                      nsReflowStatus&        aStatus){  nsresult rv = NS_OK;  aStatus = NS_FRAME_COMPLETE;  nsIReflowCommand::ReflowType type;  aReflowState.reflowState.reflowCommand->GetType(type);  nsIFrame *objectFrame;  aReflowState.reflowState.reflowCommand->GetChildFrame(objectFrame);   const nsStyleDisplay *childDisplay=nsnull;  if (nsnull!=objectFrame)    objectFrame->GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)childDisplay));  switch (type)  {  case nsIReflowCommand::StyleChanged :    rv = IR_StyleChanged(aPresContext, aDesiredSize, aReflowState, aStatus);    break;  case nsIReflowCommand::ContentChanged :    NS_ASSERTION(PR_FALSE, "illegal reflow type: ContentChanged");    rv = NS_ERROR_ILLEGAL_VALUE;    break;    case nsIReflowCommand::ReflowDirty:    {      //nsIFrame* dirtyChild;      //PRInt32 numDirty;      //if (GetDirtyChildren(this, &dirtyChild, numDirty)) {      //  for (PRInt32 dirtyX = 0; dirtyX < numDirty; dirtyX++) {      //    ResizeReflowPass1(aPresContext, aDesiredSize, aReflowState, aStatus,       //                      dirtyChild, reason, PR_FALSE);      //    dirtyChild->GetNextSibling(&dirtyChild);      //  }      //}      //else {        // Problem is we don't know has changed, so assume the worst        InvalidateFirstPassCache();      //}      InvalidateColumnWidths();      rv = NS_OK;      break;    }    default:    NS_NOTYETIMPLEMENTED("unexpected reflow command type");    rv = NS_ERROR_NOT_IMPLEMENTED;    break;  }  return rv;}