bug 4057: fix is in layout; here I'm removing the old workaround code

This commit is contained in:
jfrancis%netscape.com 1999-03-22 09:04:06 +00:00
Родитель f253f0f8c4
Коммит 1d6d98a5e5
2 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -124,10 +124,6 @@ nsTextEditRules::WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel)
mEditor->DeleteNode(mBogusNode);
mBogusNode = do_QueryInterface(nsnull);
// there is no longer any legit selection, so clear it.
// BEGIN HACK -- ClearSelection does not remove the anchor! Subsequent code depends on
// ClearSelection making it so IsCollapsed returns TRUE
aSelection->Collapse(mBogusNode, 0);
// END HACK
aSelection->ClearSelection();
}

Просмотреть файл

@ -124,10 +124,6 @@ nsTextEditRules::WillInsert(nsIDOMSelection *aSelection, PRBool *aCancel)
mEditor->DeleteNode(mBogusNode);
mBogusNode = do_QueryInterface(nsnull);
// there is no longer any legit selection, so clear it.
// BEGIN HACK -- ClearSelection does not remove the anchor! Subsequent code depends on
// ClearSelection making it so IsCollapsed returns TRUE
aSelection->Collapse(mBogusNode, 0);
// END HACK
aSelection->ClearSelection();
}