Reworked frame factory methods; fixed bug 4519
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user