Deprecated the SetFirstContentOffset/SetLastContentOffset member

functions that take a nsIFrame*


git-svn-id: svn://10.0.0.236/trunk@5297 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy
1998-07-10 19:04:06 +00:00
parent 91b4ec0238
commit 99f12e096a
13 changed files with 122 additions and 56 deletions

View File

@@ -161,7 +161,7 @@ void nsTableCellFrame::CreatePsuedoFrame(nsIPresContext* aPresContext)
{
// Do we have a prev-in-flow?
if (nsnull == mPrevInFlow) {
// No, create a column pseudo frame
// No, create a body pseudo frame
nsBodyFrame::NewFrame(&mFirstChild, mContent, this);
mChildCount = 1;
@@ -306,8 +306,9 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
this, kidSize.width, kidSize.height);
}
SetFirstContentOffset(mFirstChild);
SetLastContentOffset(mFirstChild);
// Set our last content offset based on the pseudo-frame
nsBodyFrame* bodyPseudoFrame = (nsBodyFrame*)mFirstChild;
mLastContentOffset = bodyPseudoFrame->GetLastContentOffset();
// Place the child
mFirstChild->SetRect(nsRect(leftInset, topInset,