PRInt32 startPos = 0; PRInt32 contentOffsetEnd = 0; PRBool  beginOfContent; nsCOMPtr<nsIContent> newContent; nsresult result = frame->GetContentAndOffsetsFromPoint(mPresContext, mPoint, getter_AddRefs(newContent), startPos, contentOffsetEnd,beginOfContent);
mFrameSelection->HandleDrag(mPresContext, frame, mPoint);
  NS_IMETHOD Notify(nsITimer *timer)  {    if (mSelection && mPresContext && mView)    {      nsIFrame *frame = NS_STATIC_CAST(nsIFrame*, mView->GetClientData());      if (!frame)        return NS_OK;      //the frame passed in here will be a root frame for the view. there is no need to call the constrain      //method here. the root frame has NO content now unfortunately...      PRInt32 startPos = 0;      PRInt32 contentOffsetEnd = 0;      PRBool  beginOfContent;      nsCOMPtr<nsIContent> newContent;      nsresult result = frame->GetContentAndOffsetsFromPoint(mPresContext, mPoint,                                                   getter_AddRefs(newContent),                                                    startPos, contentOffsetEnd,beginOfContent);      if (NS_SUCCEEDED(result))        result = mFrameSelection->HandleClick(newContent, startPos, contentOffsetEnd , PR_TRUE, PR_FALSE, beginOfContent);      //mFrameSelection->HandleDrag(mPresContext, mFrame, mPoint);      mSelection->DoAutoScrollView(mPresContext, mView, mPoint, PR_TRUE);    }    return NS_OK;  }