nsHTMLReflowCommand* reflowCmd; nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, aFrame, eReflowType_ReflowDirty); if (NS_SUCCEEDED(rv)) {  rv = aPresShell->AppendReflowCommand(reflowCmd); }  return rv;
return aFrame->GetPresContext()->PresShell()-> AppendReflowCommand(aFrame, eReflowType_ReflowDirty, nsnull);
nsTableFrame::AppendDirtyReflowCommand(nsIPresShell* aPresShell,                                       nsIFrame*     aFrame){  if (!aPresShell) return NS_ERROR_NULL_POINTER;  aFrame->AddStateBits(NS_FRAME_IS_DIRTY);  // mark the table frame as dirty  nsHTMLReflowCommand* reflowCmd;  nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, aFrame,                                        eReflowType_ReflowDirty);  if (NS_SUCCEEDED(rv)) {    // Add the reflow command    rv = aPresShell->AppendReflowCommand(reflowCmd);  }  return rv;}