nsIFrame* NS_NewGridRowLeafFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowLeafLayout(); return new (aPresShell) nsGridRowLeafFrame(aContext, false, layout); }
nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowLeafLayout(); if (!layout) { return nsnull; } return new (aPresShell) nsListItemFrame(aPresShell, aContext, false, layout); }