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