Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz

This commit is contained in:
roc+@cs.cmu.edu
2004-01-09 14:20:53 +00:00
parent 8d1e1c31d1
commit d8fd3d5bb4
119 changed files with 797 additions and 1435 deletions

View File

@@ -1964,9 +1964,8 @@ nsTextFrame::GetContentAndOffsetsForSelection(nsIPresContext *aPresContext, nsIC
nsIFrame *grandParent = parent->GetParent();
if (grandParent)
{
nsIFrame *firstParent;
nsresult rv = grandParent->FirstChild(aPresContext,nsnull, &firstParent);
if (NS_SUCCEEDED(rv) && firstParent)
nsIFrame *firstParent = grandParent->GetFirstChild(nsnull);
if (firstParent)
{
*aLength = 0;
if (firstParent == parent) //then our parent is the first child of granddad. use BEFORE
@@ -1979,7 +1978,7 @@ nsTextFrame::GetContentAndOffsetsForSelection(nsIPresContext *aPresContext, nsIC
}
}
else
return rv;
return NS_OK;
}
}
}