From 814b998fc2b6909c98be23f12a10f57db522c61c Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Thu, 18 Mar 2021 09:33:22 +0000 Subject: [PATCH] Bug 1698786: part 4) Add some logging to `EditorSpellChecker`. r=masayuki Differential Revision: https://phabricator.services.mozilla.com/D108624 --- editor/spellchecker/EditorSpellCheck.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/spellchecker/EditorSpellCheck.cpp b/editor/spellchecker/EditorSpellCheck.cpp index 0310ea31fe92..0e6ce3f78319 100644 --- a/editor/spellchecker/EditorSpellCheck.cpp +++ b/editor/spellchecker/EditorSpellCheck.cpp @@ -15,6 +15,7 @@ #include "mozilla/intl/LocaleService.h" // for retrieving app locale #include "mozilla/intl/MozLocale.h" // for mozilla::intl::Locale #include "mozilla/intl/OSPreferences.h" // for mozilla::intl::OSPreferences +#include "mozilla/Logging.h" // for mozilla::LazyLogModule #include "mozilla/mozalloc.h" // for operator delete, etc #include "mozilla/mozSpellChecker.h" // for mozSpellChecker #include "mozilla/Preferences.h" // for Preferences @@ -50,6 +51,8 @@ using namespace dom; using intl::LocaleService; using intl::OSPreferences; +static mozilla::LazyLogModule sEditorSpellChecker("EditorSpellChecker"); + class UpdateDictionaryHolder { private: EditorSpellCheck* mSpellCheck; @@ -410,6 +413,8 @@ EditorSpellCheck::InitSpellChecker(nsIEditor* aEditor, NS_IMETHODIMP EditorSpellCheck::GetNextMisspelledWord(nsAString& aNextMisspelledWord) { + MOZ_LOG(sEditorSpellChecker, LogLevel::Debug, ("%s", __FUNCTION__)); + NS_ENSURE_TRUE(mSpellChecker, NS_ERROR_NOT_INITIALIZED); DeleteSuggestedWordList(); -- 2.11.4.GIT