Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
This commit is contained in:
@@ -1981,11 +1981,7 @@ nsTextFrame::GetContentAndOffsetsForSelection(nsIPresContext *aPresContext, nsIC
|
||||
}
|
||||
else
|
||||
{
|
||||
PRInt32 numChildren;
|
||||
if (NS_SUCCEEDED(rv = (*aContent)->ChildCount(numChildren)))
|
||||
*aOffset = numChildren;
|
||||
else
|
||||
return rv;
|
||||
*aOffset = (*aContent)->GetChildCount();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user