nsresult result = nsFrame::GetContentAndOffsetsFromPoint(aCX,aPoint,aContent,aOffsetBegin,aOffsetEnd,aBeginFrameContent);  if (NS_SUCCEEDED(result)) {  aOffsetEnd = aOffsetBegin; }
if (!mContent) return NS_ERROR_NULL_POINTER; nsresult result = mContent->GetParent(*aContent); if (NS_SUCCEEDED(result) && *aContent) result = (*aContent)->IndexOf(mContent, aOffsetBegin); aOffsetEnd = aOffsetBegin; aBeginFrameContent = PR_TRUE;
NS_IMETHODIMP BRFrame::GetContentAndOffsetsFromPoint(nsIPresContext& aCX,                                                     const nsPoint&  aPoint,                                                     nsIContent **   aContent,                                                     PRInt32&        aOffsetBegin,                                                     PRInt32&        aOffsetEnd,                                                     PRBool&         aBeginFrameContent){  nsresult result = nsFrame::GetContentAndOffsetsFromPoint(aCX,aPoint,aContent,aOffsetBegin,aOffsetEnd,aBeginFrameContent);  if (NS_SUCCEEDED(result))  {    // BRFrames should return a collapsed selection before itself    aOffsetEnd = aOffsetBegin;  }  return result;}