mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
eb6a050c52
commit
6e44053e90
@ -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