reverting method for getting selection controller. this WAS to stop selection from snapping from outer document to inside the text field. unfortunately this caused a regression with copying. r= kin a= leaf

git-svn-id: svn://10.0.0.236/trunk@94673 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com 2001-05-11 18:51:43 +00:00
parent 9a1694b71f
commit aa97bbbd98
2 changed files with 6 additions and 6 deletions

View File

@ -2472,15 +2472,15 @@ nsFrame::GetSelectionController(nsIPresContext *aPresContext, nsISelectionContro
if (state & NS_FRAME_INDEPENDENT_SELECTION)
{
nsIFrame *tmp = this;
nsresult result = tmp->GetParent(&tmp);//start one up from this one on the parent chain
while (NS_SUCCEEDED(result) && tmp)
while (tmp)
{
nsIGfxTextControlFrame2 *tcf;
if (NS_SUCCEEDED(tmp->QueryInterface(NS_GET_IID(nsIGfxTextControlFrame2),(void**)&tcf)))
{
return tcf->GetSelectionContr(aSelCon);
}
result = NS_FAILED(tmp->GetParent(&tmp));
if (NS_FAILED(tmp->GetParent(&tmp)))
break;
}
}
nsCOMPtr<nsIPresShell> shell;

View File

@ -2472,15 +2472,15 @@ nsFrame::GetSelectionController(nsIPresContext *aPresContext, nsISelectionContro
if (state & NS_FRAME_INDEPENDENT_SELECTION)
{
nsIFrame *tmp = this;
nsresult result = tmp->GetParent(&tmp);//start one up from this one on the parent chain
while (NS_SUCCEEDED(result) && tmp)
while (tmp)
{
nsIGfxTextControlFrame2 *tcf;
if (NS_SUCCEEDED(tmp->QueryInterface(NS_GET_IID(nsIGfxTextControlFrame2),(void**)&tcf)))
{
return tcf->GetSelectionContr(aSelCon);
}
result = NS_FAILED(tmp->GetParent(&tmp));
if (NS_FAILED(tmp->GetParent(&tmp)))
break;
}
}
nsCOMPtr<nsIPresShell> shell;