| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 1e9624648685cc427e3049534186dbf33101a584..f13a3b9230f232e3b09b5606ed402ae9a345e741 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -43,6 +43,7 @@
|
| #include "core/editing/commands/TypingCommand.h"
|
| #include "core/editing/iterators/CharacterIterator.h"
|
| #include "core/editing/markers/DocumentMarkerController.h"
|
| +#include "core/editing/spellcheck/IdleSpellCheckCallback.h"
|
| #include "core/editing/spellcheck/SpellCheckRequester.h"
|
| #include "core/editing/spellcheck/TextCheckingParagraph.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -165,7 +166,8 @@ TextCheckerClient& SpellChecker::textChecker() const {
|
|
|
| SpellChecker::SpellChecker(LocalFrame& frame)
|
| : m_frame(&frame),
|
| - m_spellCheckRequester(SpellCheckRequester::create(frame)) {}
|
| + m_spellCheckRequester(SpellCheckRequester::create(frame)),
|
| + m_idleSpellCheckCallback(IdleSpellCheckCallback::create(frame)) {}
|
|
|
| bool SpellChecker::isSpellCheckingEnabled() const {
|
| return spellCheckerClient().isSpellCheckingEnabled();
|
| @@ -1109,11 +1111,11 @@ void SpellChecker::cancelCheck() {
|
| DEFINE_TRACE(SpellChecker) {
|
| visitor->trace(m_frame);
|
| visitor->trace(m_spellCheckRequester);
|
| + visitor->trace(m_idleSpellCheckCallback);
|
| }
|
|
|
| void SpellChecker::prepareForLeakDetection() {
|
| - if (!RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled())
|
| - m_spellCheckRequester->prepareForLeakDetection();
|
| + m_spellCheckRequester->prepareForLeakDetection();
|
| }
|
|
|
| Vector<TextCheckingResult> SpellChecker::findMisspellings(const String& text) {
|
|
|