зеркало из https://github.com/mozilla/gecko-dev.git
bug 4057: fix is in layout; here I'm removing the old workaround code
This commit is contained in:
Родитель
f253f0f8c4
Коммит
1d6d98a5e5
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче