-
mario@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=90269 Reviewed by Martin Robinson. Source/WebCore: Move enchant specific code down to WebCore, into a new class TextCheckerEnchant, that we can use from WK1 and WK2. * GNUmakefile.am: Add flags to handle the SPELLCHECK feature. * GNUmakefile.list.am: Added new files. * platform/text/gtk/TextCheckerEnchant.cpp: Added. (getAvailableDictionariesCallback): (TextCheckerEnchant::TextCheckerEnchant): (TextCheckerEnchant::~TextCheckerEnchant): (TextCheckerEnchant::ignoreWord): (TextCheckerEnchant::learnWord): (TextCheckerEnchant::checkSpellingOfString): (TextCheckerEnchant::getGuessesForWord): (TextCheckerEnchant::updateSpellCheckingLanguages): (TextCheckerEnchant::freeEnchantBrokerDictionaries): * platform/text/gtk/TextCheckerEnchant.h: Added. (WebCore): (TextCheckerEnchant): (WebCore::TextCheckerEnchant::create): Source/WebKit/gtk: Remove enchant specific code from WebKitSpellCheckerEnchant and implement it relying in the new TextCheckerEnchant class in WebCore. * webkit/webkitspellcheckerenchant.cpp: (_WebKitSpellCheckerEnchantPrivate): (webkit_spell_checker_enchant_finalize): (webkit_spell_checker_enchant_class_init): (webkit_spell_checker_enchant_init): (checkSpellingOfString): (getGuessesForWord): (updateSpellCheckingLanguages): (learnWord): (ignoreWord): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
94216918