Reworked frame factory methods; fixed bug 4519

This commit is contained in:
kipp@netscape.com
1999-05-11 22:03:29 +00:00
parent bba83ee6e2
commit 68aa9f7c60
142 changed files with 1298 additions and 809 deletions

View File

@@ -86,13 +86,17 @@ nscoord nsTableColFrame::GetColWidthForComputation()
/* ----- global methods ----- */
nsresult
NS_NewTableColFrame(nsIFrame*& aResult)
NS_NewTableColFrame(nsIFrame** aNewFrame)
{
nsIFrame* it = new nsTableColFrame;
NS_PRECONDITION(aNewFrame, "null OUT ptr");
if (nsnull == aNewFrame) {
return NS_ERROR_NULL_POINTER;
}
nsTableColFrame* it = new nsTableColFrame;
if (nsnull == it) {
return NS_ERROR_OUT_OF_MEMORY;
}
aResult = it;
*aNewFrame = it;
return NS_OK;
}