nsresult result = mContent->GetParent(*getter_AddRefs(parentContent));
nsresult result = mContent->GetParent(getter_AddRefs(parentContent));
NS_IMETHODIMP BRFrame::PeekOffset(nsIPresContext* aPresContext, nsPeekOffsetStruct *aPos){  if (!aPos)    return NS_ERROR_NULL_POINTER;  nsCOMPtr<nsIContent> parentContent;  PRInt32 offsetBegin; //offset of this content in its parents child list. base 0  nsresult result = mContent->GetParent(*getter_AddRefs(parentContent));  if (NS_SUCCEEDED(result) && parentContent)    result = parentContent->IndexOf(mContent, offsetBegin);  if (aPos->mAmount != eSelectLine && aPos->mAmount != eSelectBeginLine       && aPos->mAmount != eSelectEndLine) //then we must do the adjustment to make sure we leave this frame  {    if (aPos->mDirection == eDirNext)      aPos->mStartOffset = offsetBegin +1;//go to end to make sure we jump to next node.    else      aPos->mStartOffset = offsetBegin; //we start at beginning to make sure we leave this frame.  }  return nsFrame::PeekOffset(aPresContext, aPos);//now we let the default take over.}