Bug 581166, part 1: Quiet a spammy NS_ENSURE_TRUE() in nsTextEditRules::WillDeleteSelection that fires on every tab-switch. r=ehsan a=bsmedberg

This commit is contained in:
Daniel Holbert 2010-07-26 12:11:08 -07:00
Родитель b39c0ac05f
Коммит 70ea3959c5
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1006,7 +1006,8 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
res = aSelection->GetIsCollapsed(&bCollapsed);
NS_ENSURE_SUCCESS(res, res);
NS_ENSURE_TRUE(bCollapsed, NS_OK);
if (!bCollapsed)
return NS_OK;
// Test for distance between caret and text that will be deleted
res = CheckBidiLevelForDeletion(aSelection, startNode, startOffset, aCollapsedAction, aCancel);