Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

atom/renderer/api/atom_api_spell_check_client.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ namespace atom {
2020
namespace api {
2121

2222
class SpellCheckClient : public blink::WebSpellCheckClient,
23-
blink::WebTextCheckClient {
23+
public blink::WebTextCheckClient {
2424
public:
2525
SpellCheckClient(const std::string& language,
2626
bool auto_spell_correct_turned_on,
2727
v8::Isolate* isolate,
2828
v8::Local<v8::Object> provider);
29-
virtual ~SpellCheckClient();
29+
~SpellCheckClient() override;
3030

3131
private:
32-
// blink::WebSpellCheckClient:
32+
// blink::WebTextCheckClient:
3333
void CheckSpelling(
3434
const blink::WebString& text,
3535
int& offset,
@@ -41,6 +41,7 @@ class SpellCheckClient : public blink::WebSpellCheckClient,
4141
void CancelAllPendingRequests() override {};
4242

4343

44+
// blink::WebSpellCheckClient:
4445
void ShowSpellingUI(bool show) override;
4546
bool IsShowingSpellingUI() override;
4647
void UpdateSpellingUIWithMisspelledWord(

brave/renderer/extensions/web_frame_bindings.cc

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void WebFrameBindings::SetSpellCheckProvider(
144144
new atom::api::SpellCheckClient(
145145
lang, auto_spell_correct_turned_on, GetIsolate(), provider));
146146
context()->web_frame()->View()->SetSpellCheckClient(spell_check_client.get());
147+
context()->web_frame()->SetTextCheckClient(spell_check_client.get());
147148
spell_check_client_.swap(spell_check_client);
148149
}
149150

0 commit comments

Comments
 (0)