nsListControlFrame* it = new (aPresShell) nsListControlFrame;
nsCOMPtr<nsIDocument> doc; aPresShell->GetDocument(getter_AddRefs(doc)); nsListControlFrame* it = new (aPresShell) nsListControlFrame(aPresShell, doc);
NS_NewListControlFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame){  NS_PRECONDITION(aNewFrame, "null OUT ptr");  if (nsnull == aNewFrame) {    return NS_ERROR_NULL_POINTER;  }  nsListControlFrame* it = new (aPresShell) nsListControlFrame;  if (!it) {    return NS_ERROR_OUT_OF_MEMORY;  }#if 0  // set the state flags (if any are provided)  nsFrameState state;  it->GetFrameState( &state );  state |= NS_BLOCK_SPACE_MGR;  it->SetFrameState( state );#endif  *aNewFrame = it;  return NS_OK;}