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

@@ -171,11 +171,17 @@ NS_IMETHODIMP nsInputFileFrame::Reflow(nsIPresContext* aCX,
childContent->CreateFrame(aCX, this, mStyleContext, childFrame);
if (0 == i) {
mFirstChild = childFrame;
SetFirstContentOffset(mFirstChild);
PRInt32 contentIndex;
mFirstChild->GetContentIndex(contentIndex);
SetFirstContentOffset(contentIndex);
}
else {
mFirstChild->SetNextSibling(childFrame);
SetLastContentOffset(childFrame);
// XXX We shouldn't be setting this inside of a loop. Plus using
// GetContentIndex() is very slow...
PRInt32 contentIndex;
childFrame->GetContentIndex(contentIndex);
SetLastContentOffset(contentIndex);
}
NS_RELEASE(childContent);
mChildCount++;