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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user