nsIReflowCommand* reflowCmd; rv = NS_NewHTMLReflowCommand(&reflowCmd, this, nsIReflowCommand::ReflowDirty);
nsHTMLReflowCommand* reflowCmd; rv = NS_NewHTMLReflowCommand(&reflowCmd, this, eReflowType_ReflowDirty);
CanvasFrame::RemoveFrame(nsIPresContext* aPresContext,                         nsIPresShell&   aPresShell,                         nsIAtom*        aListName,                         nsIFrame*       aOldFrame){  nsresult  rv;  NS_ASSERTION(!aListName, "unexpected child list name");  if (aListName) {    // We only support the unnamed principal child list    rv = NS_ERROR_INVALID_ARG;    } else if (aOldFrame == mFrames.FirstChild()) {    // It's our one and only child frame    // Damage the area occupied by the deleted frame    nsRect  damageRect;    aOldFrame->GetRect(damageRect);    Invalidate(aPresContext, damageRect, PR_FALSE);    // Remove the frame and destroy it    mFrames.DestroyFrame(aPresContext, aOldFrame);    // Generate a reflow command so we get reflowed    nsIReflowCommand* reflowCmd;    rv = NS_NewHTMLReflowCommand(&reflowCmd, this, nsIReflowCommand::ReflowDirty);    if (NS_SUCCEEDED(rv)) {      aPresShell.AppendReflowCommand(reflowCmd);      NS_RELEASE(reflowCmd);    }  } else {    rv = NS_ERROR_FAILURE;  }  return rv;}