Hooked up SizeOf() for cell map and table layout strategies. Also added in

some table frame data that was missed
This commit is contained in:
troy@netscape.com
1999-10-02 00:02:54 +00:00
parent 11f525cb46
commit b189b723af
31 changed files with 222 additions and 20 deletions

View File

@@ -31,6 +31,7 @@
#include "nsCOMPtr.h"
#include "nsCSSRendering.h"
#include "nsIPresShell.h"
#include "nsLayoutAtoms.h"
NS_DEF_PTR(nsIContent);
@@ -695,6 +696,15 @@ NS_NewTableColGroupFrame(nsIFrame** aNewFrame)
return NS_OK;
}
NS_IMETHODIMP
nsTableColGroupFrame::GetFrameType(nsIAtom** aType) const
{
NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer");
*aType = nsLayoutAtoms::tableColGroupFrame;
NS_ADDREF(*aType);
return NS_OK;
}
NS_IMETHODIMP
nsTableColGroupFrame::GetFrameName(nsString& aResult) const
{
@@ -709,7 +719,6 @@ nsTableColGroupFrame::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) cons
return NS_ERROR_NULL_POINTER;
}
PRUint32 sum = sizeof(*this);
// XXX write me
*aResult = sum;
return NS_OK;
}