fixed 4057: Clear() now resets focus and anchor nodes
git-svn-id: svn://10.0.0.236/trunk@24663 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a1384a7aec
commit
356ea1dcd5
@ -502,6 +502,8 @@ nsRangeList::RemoveItem(nsISupports *aItem)
|
||||
nsresult
|
||||
nsRangeList::Clear()
|
||||
{
|
||||
setFocus(nsnull,0);
|
||||
setAnchor(nsnull,0);
|
||||
if (!mRangeArray)
|
||||
return NS_ERROR_FAILURE;
|
||||
for (PRUint32 i = 0; i < mRangeArray->Count();i++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user