Added Init() member function to nsIFrame

git-svn-id: svn://10.0.0.236/trunk@15682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-03 06:31:43 +00:00
parent 2c8f8fff45
commit 01f27b2a31
136 changed files with 972 additions and 2016 deletions

View File

@@ -32,8 +32,8 @@ static const PRBool gsDebug = PR_FALSE;
static const PRBool gsNoisyRefs = PR_FALSE;
#endif
nsTableColFrame::nsTableColFrame(nsIContent* aContent, nsIFrame* aParentFrame)
: nsFrame(aContent, aParentFrame)
nsTableColFrame::nsTableColFrame()
: nsFrame()
{
mColIndex = 0;
mMaxColWidth = 0;
@@ -44,11 +44,6 @@ nsTableColFrame::nsTableColFrame(nsIContent* aContent, nsIFrame* aParentFrame)
mWidthSource = eWIDTH_SOURCE_NONE;
}
nsTableColFrame::~nsTableColFrame()
{
}
NS_METHOD nsTableColFrame::Paint(nsIPresContext& aPresContext,
nsIRenderingContext& aRenderingContext,
const nsRect& aDirtyRect)
@@ -95,11 +90,9 @@ nscoord nsTableColFrame::GetColWidthForComputation()
/* ----- global methods ----- */
nsresult
NS_NewTableColFrame(nsIContent* aContent,
nsIFrame* aParentFrame,
nsIFrame*& aResult)
NS_NewTableColFrame(nsIFrame*& aResult)
{
nsIFrame* it = new nsTableColFrame(aContent, aParentFrame);
nsIFrame* it = new nsTableColFrame;
if (nsnull == it) {
return NS_ERROR_OUT_OF_MEMORY;
}