mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1122051: Convert extremely-spammy-during-mochitests NS_ENSURE_TRUE in SpellCheckRange() to a simple check-and-return. r=ehsan
This commit is contained in:
parent
13ce318418
commit
adf8648f8e
@ -902,7 +902,11 @@ mozInlineSpellChecker::SpellCheckAfterEditorChange(
|
||||
nsresult
|
||||
mozInlineSpellChecker::SpellCheckRange(nsIDOMRange* aRange)
|
||||
{
|
||||
NS_ENSURE_TRUE(mSpellCheck, NS_ERROR_NOT_INITIALIZED);
|
||||
if (!mSpellCheck) {
|
||||
NS_WARN_IF_FALSE(mPendingSpellCheck,
|
||||
"Trying to spellcheck, but checking seems to be disabled");
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
mozInlineSpellStatus status(this);
|
||||
nsRange* range = static_cast<nsRange*>(aRange);
|
||||
|
Loading…
Reference in New Issue
Block a user