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:
parent
9a1694b71f
commit
aa97bbbd98
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user