зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
9901329845
Коммит
60caf12490
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче