diff --git a/atom/renderer/api/atom_api_spell_check_client.h b/atom/renderer/api/atom_api_spell_check_client.h index d4190dee81..d3bce399d8 100644 --- a/atom/renderer/api/atom_api_spell_check_client.h +++ b/atom/renderer/api/atom_api_spell_check_client.h @@ -20,16 +20,16 @@ namespace atom { namespace api { class SpellCheckClient : public blink::WebSpellCheckClient, - blink::WebTextCheckClient { + public blink::WebTextCheckClient { public: SpellCheckClient(const std::string& language, bool auto_spell_correct_turned_on, v8::Isolate* isolate, v8::Local provider); - virtual ~SpellCheckClient(); + ~SpellCheckClient() override; private: - // blink::WebSpellCheckClient: + // blink::WebTextCheckClient: void CheckSpelling( const blink::WebString& text, int& offset, @@ -41,6 +41,7 @@ class SpellCheckClient : public blink::WebSpellCheckClient, void CancelAllPendingRequests() override {}; + // blink::WebSpellCheckClient: void ShowSpellingUI(bool show) override; bool IsShowingSpellingUI() override; void UpdateSpellingUIWithMisspelledWord( diff --git a/brave/renderer/extensions/web_frame_bindings.cc b/brave/renderer/extensions/web_frame_bindings.cc index 13edca3fe4..1e8c7e7021 100644 --- a/brave/renderer/extensions/web_frame_bindings.cc +++ b/brave/renderer/extensions/web_frame_bindings.cc @@ -144,6 +144,7 @@ void WebFrameBindings::SetSpellCheckProvider( new atom::api::SpellCheckClient( lang, auto_spell_correct_turned_on, GetIsolate(), provider)); context()->web_frame()->View()->SetSpellCheckClient(spell_check_client.get()); + context()->web_frame()->SetTextCheckClient(spell_check_client.get()); spell_check_client_.swap(spell_check_client); }