mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
restoring 1.54 checkin: no longer clearing selection when we detect empty document - selection is a perfectly valid concept in an empty document.
This commit is contained in:
parent
61548af51a
commit
9c28b6ac69
@ -217,8 +217,6 @@ nsTextEditRules::WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel)
|
|||||||
{
|
{
|
||||||
mEditor->DeleteNode(mBogusNode);
|
mEditor->DeleteNode(mBogusNode);
|
||||||
mBogusNode = do_QueryInterface(nsnull);
|
mBogusNode = do_QueryInterface(nsnull);
|
||||||
// there is no longer any legit selection, so clear it.
|
|
||||||
aSelection->ClearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -217,8 +217,6 @@ nsTextEditRules::WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel)
|
|||||||
{
|
{
|
||||||
mEditor->DeleteNode(mBogusNode);
|
mEditor->DeleteNode(mBogusNode);
|
||||||
mBogusNode = do_QueryInterface(nsnull);
|
mBogusNode = do_QueryInterface(nsnull);
|
||||||
// there is no longer any legit selection, so clear it.
|
|
||||||
aSelection->ClearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user